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

Side by Side Diff: sdk/lib/async/merge_stream.dart

Issue 11820024: Enable "part of" for the async library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/async/future_impl.dart ('k') | sdk/lib/async/stream.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) 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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/async/future_impl.dart ('k') | sdk/lib/async/stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698