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

Unified Diff: runtime/bin/socket_patch.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: runtime/bin/socket_patch.dart
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
index 3b9aaae6882d2cd05a4c2718b03724b643815fa2..64ff5642e08aeb5220dfc319582fdf9b59e2bdb7 100644
--- a/runtime/bin/socket_patch.dart
+++ b/runtime/bin/socket_patch.dart
@@ -434,7 +434,7 @@ class _RawServerSocket extends Stream<RawSocket>
if (socket != null) _controller.add(new _RawSocket(socket));
},
error: (e) {
- _controller.signalError(new AsyncError(e));
+ _controller.addError(new AsyncError(e));
_controller.close();
}
);
@@ -507,7 +507,7 @@ class _RawSocket extends Stream<RawSocketEvent>
},
closed: () => _controller.add(RawSocketEvent.READ_CLOSED),
error: (e) {
- _controller.signalError(new AsyncError(e));
+ _controller.addError(new AsyncError(e));
close();
}
);
@@ -863,7 +863,7 @@ class _Socket extends Stream<List<int>> implements Socket {
void _onError(error) {
if (!_controllerClosed) {
_controllerClosed = true;
- _controller.signalError(error);
+ _controller.addError(error);
_controller.close();
}
_done(error);

Powered by Google App Engine
This is Rietveld 408576698