Skip to content

Conversation

@rmanalan
Copy link

@rmanalan rmanalan commented Feb 7, 2018

The current waitUntilReady() method will never resolve if the 'ready' event fires after the client's code is run. This implementation will maintain the state of the promise and will always resolve even after the 'ready' event was emitted.

Rich Manalang added 2 commits February 7, 2018 09:33
The current `waitUntilReady()` method will never resolve if the 'ready' event fires after the client's code is run. This implementation will maintain the state of the promise and will always resolve even after the 'ready' event was emitted.
@rmanalan rmanalan changed the title Refactored waitUntilReady() WIP: Refactored waitUntilReady() Feb 7, 2018
@rmanalan rmanalan changed the title WIP: Refactored waitUntilReady() Refactored waitUntilReady() to always resolve even after ready event was already emitted Feb 7, 2018
Copy link
Contributor

@apucacao apucacao left a comment

Choose a reason for hiding this comment

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

This look great — thanks Rich! 😄

@apucacao
Copy link
Contributor

apucacao commented Feb 7, 2018

This will go out with our next release, which should come out shortly.

@apucacao apucacao merged commit 85288b0 into launchdarkly:master Feb 7, 2018
eli-darkly added a commit that referenced this pull request May 26, 2018
better handling of null/invalid user
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.

2 participants