-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Flow.collectWhile #1087
Comments
Do you see any |
Would be used also for #1078 ( |
@elizarov your question looks like: "Should we allow So I don't see any strongly argument to break a
This proposal defines a clean method to break a |
|
Apparently kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/Limit.kt Lines 126 to 142 in 3cb61fc
Most likely on purpose, of course. |
We've come across a few cases where there is state we want to update which affects downstream operations. The first place we came across is roughly
We might also suggest calling this
|
Update: we're no longer quite as convinced about |
takeXxx
share a common logic, have you consideredcollectWhile
?Here a POC
The text was updated successfully, but these errors were encountered: