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

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

Issue 1635873002: Add an IsolateChannel class. (Closed) Base URL: git@github.com:dart-lang/stream_channel.git@master
Patch Set: Created 4 years, 10 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/src/isolate_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
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 }
OLDNEW
« no previous file with comments | « no previous file | lib/src/isolate_channel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698