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 async.stream_group; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 /// A collection of streams whose events are unified and sent through a central | 7 /// A collection of streams whose events are unified and sent through a central |
10 /// stream. | 8 /// stream. |
11 /// | 9 /// |
12 /// Both errors and data events are forwarded through [stream]. The streams in | 10 /// Both errors and data events are forwarded through [stream]. The streams in |
13 /// the group won't be listened to until [stream] has a listener. **Note that | 11 /// the group won't be listened to until [stream] has a listener. **Note that |
14 /// this means that events emitted by broadcast streams will be dropped until | 12 /// this means that events emitted by broadcast streams will be dropped until |
15 /// [stream] has a listener.** | 13 /// [stream] has a listener.** |
16 /// | 14 /// |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 248 |
251 /// The name of the state. | 249 /// The name of the state. |
252 /// | 250 /// |
253 /// Used for debugging. | 251 /// Used for debugging. |
254 final String name; | 252 final String name; |
255 | 253 |
256 const _StreamGroupState(this.name); | 254 const _StreamGroupState(this.name); |
257 | 255 |
258 String toString() => name; | 256 String toString() => name; |
259 } | 257 } |
OLD | NEW |