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