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

Unified Diff: runtime/bin/stream_util.dart

Issue 8989019: Implement list based output stream and add pipe to list based input streams (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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/stream_util.dart
diff --git a/runtime/bin/stream_util.dart b/runtime/bin/stream_util.dart
index 886cc8e4dade4b41645a5573fa13aee23f3a3b1e..48039e1e92debc47052e769203ea5af39b5809c4 100644
--- a/runtime/bin/stream_util.dart
+++ b/runtime/bin/stream_util.dart
@@ -31,6 +31,10 @@ class _BaseDataInputStream {
return _readInto(buffer, offset, bytesToRead);
}
+ void pipe(OutputStream output, [bool close = true]) {
+ _pipe(this, output, close: close);
+ }
+
bool get closed() => _closeCallbackCalled;
void set dataHandler(void callback()) {
@@ -90,8 +94,8 @@ class _BaseDataInputStream {
Timer _scheduledDataCallback;
Timer _scheduledCloseCallback;
- var _clientDataHandler;
- var _clientCloseHandler;
+ Function _clientDataHandler;
+ Function _clientCloseHandler;
}

Powered by Google App Engine
This is Rietveld 408576698