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

Unified Diff: tests/lib/async/slow_consumer_test.dart

Issue 11740027: Rename unsubscribe to cancel. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Fix error message. Created 7 years, 12 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
Index: tests/lib/async/slow_consumer_test.dart
diff --git a/tests/lib/async/slow_consumer_test.dart b/tests/lib/async/slow_consumer_test.dart
index 833e462f562e5efb2db89f64a2bf2328e6b5c384..938fc4c46be726290943fc4b891baf4ba4a0a976 100644
--- a/tests/lib/async/slow_consumer_test.dart
+++ b/tests/lib/async/slow_consumer_test.dart
@@ -20,8 +20,8 @@ class SlowConsumer extends StreamPipe {
Future bind(Stream stream) {
Completer completer = new Completer();
var subscription;
- subscription = stream.subscribe(
- onData: (List<int> data) {
+ subscription = stream.listen(
+ (List<int> data) {
current = current
.then((count) {
// Simulated amount of time it takes to handle the data.

Powered by Google App Engine
This is Rietveld 408576698