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

Unified Diff: tests/lib/async/event_helper.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/event_helper.dart
diff --git a/tests/lib/async/event_helper.dart b/tests/lib/async/event_helper.dart
index 8e98959d666030fd7151333970f754c92670583e..409e0c85933f1fbb11ceb5cc01b2c512e3daa5ce 100644
--- a/tests/lib/async/event_helper.dart
+++ b/tests/lib/async/event_helper.dart
@@ -141,10 +141,10 @@ class CaptureEvents extends Events {
{ bool unsubscribeOnError: false })
: onDoneSignal = new SignalCompleter() {
this.unsubscribeOnError = unsubscribeOnError;
- subscription = stream.subscribe(onData: add,
- onError: signalError,
- onDone: close,
- unsubscribeOnError: unsubscribeOnError);
+ subscription = stream.listen(add,
+ onError: signalError,
+ onDone: close,
+ unsubscribeOnError: unsubscribeOnError);
}
void signalError(AsyncError error) {

Powered by Google App Engine
This is Rietveld 408576698