| Index: sdk/lib/async/stream.dart
|
| diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart
|
| index 0a0208ba7188c537451cc8bf027f29ab9e7c6f2c..0de29194a517516241b003128471226d06800513 100644
|
| --- a/sdk/lib/async/stream.dart
|
| +++ b/sdk/lib/async/stream.dart
|
| @@ -925,6 +925,19 @@ class StreamView<T> extends Stream<T> {
|
| }
|
| }
|
|
|
| +/**
|
| + * [EventSink] wrapper that only exposes the [EventSink] interface.
|
| + */
|
| +class _EventSinkView<T> extends EventSink<T> {
|
| + final EventSink<T> _sink;
|
| +
|
| + _EventSinkView(this._sink);
|
| +
|
| + void add(T value) { _sink.add(value); }
|
| + void addError(error) { _sink.addError(error); }
|
| + void close() { _sink.close(); }
|
| +}
|
| +
|
|
|
| /**
|
| * The target of a [Stream.pipe] call.
|
|
|