| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library test.multi_channel; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'stream_channel.dart'; | 7 import 'stream_channel.dart'; |
| 10 | 8 |
| 11 /// A class that multiplexes multiple virtual channels across a single | 9 /// A class that multiplexes multiple virtual channels across a single |
| 12 /// underlying transport layer. | 10 /// underlying transport layer. |
| 13 /// | 11 /// |
| 14 /// This should be connected to another [MultiChannel] on the other end of the | 12 /// This should be connected to another [MultiChannel] on the other end of the |
| 15 /// underlying channel. It starts with a single default virtual channel, | 13 /// underlying channel. It starts with a single default virtual channel, |
| 16 /// accessible via [stream] and [sink]. Additional virtual channels can be | 14 /// accessible via [stream] and [sink]. Additional virtual channels can be |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 /// except that it will be JSON-serializable. | 234 /// except that it will be JSON-serializable. |
| 237 final id; | 235 final id; |
| 238 | 236 |
| 239 final Stream stream; | 237 final Stream stream; |
| 240 final StreamSink sink; | 238 final StreamSink sink; |
| 241 | 239 |
| 242 VirtualChannel._(this._parent, this.id, this.stream, this.sink); | 240 VirtualChannel._(this._parent, this.id, this.stream, this.sink); |
| 243 | 241 |
| 244 VirtualChannel virtualChannel([id]) => _parent.virtualChannel(id); | 242 VirtualChannel virtualChannel([id]) => _parent.virtualChannel(id); |
| 245 } | 243 } |
| OLD | NEW |