-
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
flowOf("a", "b").onCompletion { emit("Done") }.first() returns "Done" #1654
Comments
qwwdfsad
added a commit
that referenced
this issue
Nov 12, 2019
* We cannot allow emitting elements when downstream exception occurred, otherwise it may lead to a weird side-effects when "collect" block (or any other terminal operator) has thrown an exception, but keeps receiving new values * Another solution may be to silently ignore emitted values, but it may lead to a postponed cancellation and surprising behaviour for users Fixes #1654
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I run this program:
I expect to see the output
a
, but the actual output isDone
.The text was updated successfully, but these errors were encountered: