-
Notifications
You must be signed in to change notification settings - Fork 28
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
Stream.take(0) doesn't forward errors any more. #81
Comments
I think current description is still confusing:
I conclude that error events are received without any restrictions. StreamSubscription ss = stream.listen(...);
ss.cancel(); Is there a possibility, that between these lines the stream generates some error (in another thread for example) and this error is received? |
The current documentation on the bleeding edge branch now says:
I believe it will be published with the 1.21 release. |
BUG=dart-lang/co19#68 BUG=dart-lang/co19#81 R=sortie@google.com Review URL: https://codereview.chromium.org/2531033002 .
We are fixing a bug in
Stream.take
with a zero count that made it not cancel the subscription immediately. It should, and now it does, which also means that two tests are now failing:Both seem to assume that
.take(0)
will still propagate an error event, which it now won't.The description of
Stream.take
was a little confusing, and will also be cleaned up. It did say that the subscription was cancelled after [count] events had been received, which is now true even forcount == 0
.The text was updated successfully, but these errors were encountered: