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

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

Issue 11784020: Fixed status files for dart2js corelib/lib/language tests. (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 | « no previous file | sdk/lib/core/iterable.dart » ('j') | tests/corelib/corelib.status » ('J')
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 // States shared by single/multi stream implementations. 7 // States shared by single/multi stream implementations.
8 8
9 /// Initial and default state where the stream can receive and send events. 9 /// Initial and default state where the stream can receive and send events.
10 const int _STREAM_OPEN = 0; 10 const int _STREAM_OPEN = 0;
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 * 636 *
637 * The subscription is in one of three states: 637 * The subscription is in one of three states:
638 * * Subscribed. 638 * * Subscribed.
639 * * Paused-and-subscribed. 639 * * Paused-and-subscribed.
640 * * Unsubscribed. 640 * * Unsubscribed.
641 * Unsubscribing also unpauses. 641 * Unsubscribing also unpauses.
642 */ 642 */
643 class _StreamSubscriptionImpl<T> extends _StreamListener<T> 643 class _StreamSubscriptionImpl<T> extends _StreamListener<T>
644 implements StreamSubscription<T> { 644 implements StreamSubscription<T> {
645 final bool _unsubscribeOnError; 645 final bool _unsubscribeOnError;
646 _DataHandler _onData; 646 _DataHandler<T> _onData;
647 _ErrorHandler _onError; 647 _ErrorHandler<T> _onError;
648 _DoneHandler _onDone; 648 _DoneHandler _onDone;
649 _StreamSubscriptionImpl(_StreamImpl source, 649 _StreamSubscriptionImpl(_StreamImpl source,
650 this._onData, 650 this._onData,
651 this._onError, 651 this._onError,
652 this._onDone, 652 this._onDone,
653 this._unsubscribeOnError) : super(source); 653 this._unsubscribeOnError) : super(source);
654 654
655 void onData(void handleData(T event)) { 655 void onData(void handleData(T event)) {
656 if (handleData == null) handleData = _nullDataHandler; 656 if (handleData == null) handleData = _nullDataHandler;
657 _onData = handleData; 657 _onData = handleData;
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 if (_isComplete) { 1008 if (_isComplete) {
1009 throw new StateError("Subscription has been canceled."); 1009 throw new StateError("Subscription has been canceled.");
1010 } 1010 }
1011 if (_timer != null) { 1011 if (_timer != null) {
1012 _timer.cancel(); 1012 _timer.cancel();
1013 _timer = null; 1013 _timer = null;
1014 } 1014 }
1015 _pauseCount = 0; 1015 _pauseCount = 0;
1016 } 1016 }
1017 } 1017 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/core/iterable.dart » ('j') | tests/corelib/corelib.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698