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

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

Issue 1284223005: Forward cancel subscription in stream pipes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comment. Created 5 years, 4 months 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 | « no previous file | tests/language/async_star_regression_fisk_test.dart » ('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 a2fc15d5e3adbfe84a89494c940f4dc7f9d96e82..b3c3aaf18b933521c81d31fd25387cc95c3f4a29 100644
--- a/sdk/lib/async/stream_pipe.dart
+++ b/sdk/lib/async/stream_pipe.dart
@@ -161,7 +161,7 @@ class _ForwardingStreamSubscription<S, T>
if (_subscription != null) {
StreamSubscription subscription = _subscription;
_subscription = null;
- subscription.cancel();
+ return subscription.cancel();
}
return null;
}
« no previous file with comments | « no previous file | tests/language/async_star_regression_fisk_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698