Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2455)

Unified Diff: sdk/lib/async/stream_pipe.dart

Issue 2475303002: Revert "Handle the case of Stream.take(0) better." This reverts commit 8cead4090cc0b1184a2ad552003a… (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | tests/co19/co19-co19.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/stream_pipe.dart
diff --git a/sdk/lib/async/stream_pipe.dart b/sdk/lib/async/stream_pipe.dart
index 58acd4f8b47b23e5fdfbf55e2038515452bf9564..d26b0c5f64c86fc97c1df3c06a879e81c9c480fd 100644
--- a/sdk/lib/async/stream_pipe.dart
+++ b/sdk/lib/async/stream_pipe.dart
@@ -326,9 +326,6 @@ class _TakeStream<T> extends _ForwardingStream<T, T> {
Function onError,
void onDone(),
bool cancelOnError) {
- if (_count == 0) {
- return new _DoneStreamSubscription<T>(onDone);
- }
return new _StateStreamSubscription<T>(
this, onData, onError, onDone, cancelOnError, _count);
}
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | tests/co19/co19-co19.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698