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

Unified Diff: tests/lib/async/slow_consumer2_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_consumer2_test.dart
diff --git a/tests/lib/async/slow_consumer2_test.dart b/tests/lib/async/slow_consumer2_test.dart
index 00a74bc5a95a3ec8d4e666229526b8b2c627e663..51ffba79b2b638af157e1036c89f17635cfee460 100644
--- a/tests/lib/async/slow_consumer2_test.dart
+++ b/tests/lib/async/slow_consumer2_test.dart
@@ -23,8 +23,8 @@ class SlowConsumer extends StreamPipe {
Future bind(Stream stream) {
Completer result = new Completer();
var subscription;
- subscription = stream.subscribe(
- onData: (List<int> data) {
+ subscription = stream.listen(
+ (List<int> data) {
receivedCount += data.length;
usedBufferSize += data.length;
bufferedData.add(data);

Powered by Google App Engine
This is Rietveld 408576698