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

Side by Side Diff: lib/src/delegating_stream_channel.dart

Issue 1617483003: Add a DelegatingStreamChannel class. (Closed) Base URL: git@github.com:dart-lang/stream_channel.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | lib/stream_channel.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 /// A simple delegating wrapper around [StreamChannel].
6 ///
7 /// Subclasses can override individual methods, or use this to expose only
8 /// [StreamChannel] methods.
9 class StreamChannelView<T> extends StreamChannelMixin<T> {
10 /// The inner channel to which methods are forwarded.
11 final StreamChannel<T> _inner;
12
13 Stream<T> get stream => _inner.stream;
14 StreamSink<T> get sink => _inner.sink;
15
16 StreamChannelView(this._inner);
17 }
OLDNEW
« no previous file with comments | « no previous file | lib/stream_channel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698