OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // part of dart.async; | 5 part of dart.async; |
6 | 6 |
7 class _SupercedeEntry<T> { | 7 class _SupercedeEntry<T> { |
8 final SupercedeStream stream; | 8 final SupercedeStream stream; |
9 Stream<T> source; | 9 Stream<T> source; |
10 StreamSubscription subscription = null; | 10 StreamSubscription subscription = null; |
11 _SupercedeEntry next; | 11 _SupercedeEntry next; |
12 | 12 |
13 _SupercedeEntry(this.stream, this.source, this.next); | 13 _SupercedeEntry(this.stream, this.source, this.next); |
14 | 14 |
15 // Whether the source stream is complete. | 15 // Whether the source stream is complete. |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 if (_currentEntry.next == null) { | 273 if (_currentEntry.next == null) { |
274 _close(); | 274 _close(); |
275 _currentEntry = _lastEntry = null; | 275 _currentEntry = _lastEntry = null; |
276 } else { | 276 } else { |
277 // Remove the current entry from the list now that it's complete. | 277 // Remove the current entry from the list now that it's complete. |
278 _currentEntry = _currentEntry.next; | 278 _currentEntry = _currentEntry.next; |
279 _currentEntry.activate(); | 279 _currentEntry.activate(); |
280 } | 280 } |
281 } | 281 } |
282 } | 282 } |
OLD | NEW |