| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:async'; |
| 6 |
| 7 import '../stream_channel.dart'; |
| 8 |
| 5 /// A simple delegating wrapper around [StreamChannel]. | 9 /// A simple delegating wrapper around [StreamChannel]. |
| 6 /// | 10 /// |
| 7 /// Subclasses can override individual methods, or use this to expose only | 11 /// Subclasses can override individual methods, or use this to expose only |
| 8 /// [StreamChannel] methods. | 12 /// [StreamChannel] methods. |
| 9 class StreamChannelView<T> extends StreamChannelMixin<T> { | 13 class DelegatingStreamChannel<T> extends StreamChannelMixin<T> { |
| 10 /// The inner channel to which methods are forwarded. | 14 /// The inner channel to which methods are forwarded. |
| 11 final StreamChannel<T> _inner; | 15 final StreamChannel<T> _inner; |
| 12 | 16 |
| 13 Stream<T> get stream => _inner.stream; | 17 Stream<T> get stream => _inner.stream; |
| 14 StreamSink<T> get sink => _inner.sink; | 18 StreamSink<T> get sink => _inner.sink; |
| 15 | 19 |
| 16 StreamChannelView(this._inner); | 20 DelegatingStreamChannel(this._inner); |
| 17 } | 21 } |
| OLD | NEW |