| 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());
|
| }
|
|
|