Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add wait_for_initialization with timeout parameter #76

Merged
merged 2 commits into from
May 20, 2024

Conversation

keelerm84
Copy link
Member

This method serves as a replacement for the initialized_async method, which has now been deprecated. LaunchDarkly does not recommend blocking an application indefinitely, and so we are working to remove methods that suggest this behavior.

@keelerm84 keelerm84 requested a review from a team as a code owner May 10, 2024 17:47
Copy link
Contributor

@louis-launchdarkly louis-launchdarkly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may still want a Rust engineer to look at this, but from my perspective, the change is what we want.

launchdarkly-server-sdk/src/client.rs Outdated Show resolved Hide resolved
Comment on lines 290 to 292
// We need o try initialized_async and also start a timer that figures after timeout.
// If the timer figures, I want to return None. Otherwise, we should return the result of
// initialized_async.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(copilot?)

keelerm84 and others added 2 commits May 20, 2024 14:19
This method serves as a replacement for the `initialized_async` method,
which has now been deprecated. LaunchDarkly does not recommend blocking
an application indefinitely, and so we are working to remove methods
that suggest this behavior.
Co-authored-by: Casey Waldren <cwaldren@launchdarkly.com>
@keelerm84 keelerm84 merged commit 45e3451 into main May 20, 2024
3 checks passed
@keelerm84 keelerm84 deleted the mk/sc-243032/timeout branch May 20, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants