-
Notifications
You must be signed in to change notification settings - Fork 128
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
#1103 Refactor Multi.toFlow() to avoid blocking - Mutiny1 #1104
Conversation
@@ -147,13 +148,13 @@ class MultiAsFlowTest { | |||
delay(100) | |||
emit() | |||
emit() | |||
yield() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test became flaky, the onFailure was sometimes propagated before flow.collect
retrieved the second item - forcing a context switch helped. need to observe this further on.
Let's see progress on #1105 |
Hum you have a point. |
So the fix for 1.x could be to keep the method, and perform unlimited buffering, and update the docs. WDYT? |
convinced 😊 |
channelFlow
tocallbackFlow
brings simplificationFlow
, solved by explicit switching to an unlimited channel that doesn't buffer.