| Index: sdk/lib/async/stream.dart
|
| diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart
|
| index afdeaf3fa84f450b0f57081dda980874b5490c81..c713d9e87386f09989955e5bc5a08f1499141c88 100644
|
| --- a/sdk/lib/async/stream.dart
|
| +++ b/sdk/lib/async/stream.dart
|
| @@ -215,13 +215,13 @@ abstract class Stream<T> {
|
| }
|
|
|
| // Deprecated method, previously called 'pipe', retained for compatibility.
|
| - Future pipeInto(Sink<T> sink,
|
| + Future pipeInto(StreamSink<T> sink,
|
| {void onError(AsyncError error),
|
| bool unsubscribeOnError}) {
|
| _FutureImpl<T> result = new _FutureImpl<T>();
|
| this.listen(
|
| sink.add,
|
| - onError: onError,
|
| + onError: sink.signalError,
|
| onDone: () {
|
| sink.close();
|
| result._setValue(null);
|
| @@ -847,7 +847,7 @@ abstract class StreamSubscription<T> {
|
| /**
|
| * An interface that abstracts sending events into a [Stream].
|
| */
|
| -abstract class StreamSink<T> implements Sink<T> {
|
| +abstract class StreamSink<T> {
|
| void add(T event);
|
| /** Signal an async error to the receivers of this sink's values. */
|
| void signalError(AsyncError errorEvent);
|
|
|