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

Unified Diff: runtime/bin/list_stream.dart

Issue 10832145: Add a ListOutputStream.onData callback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | runtime/bin/list_stream_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/list_stream.dart
diff --git a/runtime/bin/list_stream.dart b/runtime/bin/list_stream.dart
index 83c796fae5359ceb28d038549c35c81aa2fb79cb..61187de9738ee8f6b1ee4481888fbb5f165a82a8 100644
--- a/runtime/bin/list_stream.dart
+++ b/runtime/bin/list_stream.dart
@@ -43,7 +43,13 @@ interface ListOutputStream extends OutputStream default _ListOutputStream {
ListOutputStream();
/**
- * Get the contents written to the [ListOutputStream].
+ * Reads all available data from the stream. If no data is available `null`
+ * will be returned.
*/
- List<int> contents();
+ List<int> read();
+
+ /**
+ * Sets the handler that gets called when data is available.
+ */
+ void set onData(void callback());
}
« no previous file with comments | « no previous file | runtime/bin/list_stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698