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

fix delay of stopping host lookup #1129

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

jfz
Copy link
Contributor

@jfz jfz commented Jan 16, 2020

There's a delay on stopping host lookup caused by EvaluationFlows.repeatWhile, use EvaluationFlows.stoppableSource instead.
The delay can cause temporary incorrect lwc subscriptions when subscriptions change.

There's a delay on stopping host lookup caused by EvaluationFlows.repeatWhile, use EvaluationFlows.stoppableSource instead. The delay can cause temporary incorrect lwc subscriptions when subscription changes.
@jfz jfz requested a review from brharrington January 16, 2020 18:01
* Source that will repeat the item with the specified delay in between while the
* condition is still true.
*/
def repeatWhile[T](item: T, delay: FiniteDuration): (Source[T, NotUsed], AtomicBoolean) = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removing this since it's not used anywhere else, we can use stopableSource instead for similar use case.

@brharrington brharrington added this to the 1.7.0 milestone Jan 16, 2020
@brharrington brharrington merged commit 0843692 into Netflix:master Jan 16, 2020
@jfz jfz deleted the fixHostLookupAsyncStop branch January 16, 2020 18:16
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