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

Unified Diff: sdk/lib/io/file_impl.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: sdk/lib/io/file_impl.dart
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
index 0ba765cfb34a485ed91e21f7f778ea3d7f63dc95..e08b0403ad95a4ffc8293b1123c49658b084089d 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -94,7 +94,7 @@ class _FileStream extends Stream<List<int>> {
})
.catchError((e) {
if (!_unsubscribed) {
- _controller.signalError(e);
+ _controller.addError(e);
_closeFile().then((_) { _controller.close(); });
_unsubscribed = true;
}
@@ -114,7 +114,7 @@ class _FileStream extends Stream<List<int>> {
_readBlock();
})
.catchError((e) {
- _controller.signalError(e);
+ _controller.addError(e);
_controller.close();
});
}

Powered by Google App Engine
This is Rietveld 408576698