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

Unified Diff: utils/pub/utils.dart

Issue 12610006: Renamed StreamSink to EventSink. Renamed signalError to addError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed inheritance back! Now create StreamSink instead of EventSink where we create them. Created 7 years, 9 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: utils/pub/utils.dart
diff --git a/utils/pub/utils.dart b/utils/pub/utils.dart
index 098916ea645c105b7283681b9ef16783102fd0a4..fd130da7ee1dfa4e62f3dec9aed430f058ae85a3 100644
--- a/utils/pub/utils.dart
+++ b/utils/pub/utils.dart
@@ -202,7 +202,7 @@ Pair<Stream, StreamSubscription> streamWithSubscription(Stream stream) {
new StreamController.broadcast() :
new StreamController();
var subscription = stream.listen(controller.add,
- onError: controller.signalError,
+ onError: controller.addError,
onDone: controller.close);
return new Pair<Stream, StreamSubscription>(controller.stream, subscription);
}
@@ -218,8 +218,8 @@ Pair<Stream, Stream> tee(Stream stream) {
controller1.add(value);
controller2.add(value);
}, onError: (error) {
- controller1.signalError(error);
- controller2.signalError(error);
+ controller1.addError(error);
+ controller2.addError(error);
}, onDone: () {
controller1.close();
controller2.close();

Powered by Google App Engine
This is Rietveld 408576698