| 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 _BroadcastStream<T> extends _ControllerStream<T> { | 7 class _BroadcastStream<T> extends _ControllerStream<T> { |
| 8 _BroadcastStream(_StreamControllerLifecycle<T> controller) | 8 _BroadcastStream(_StreamControllerLifecycle<T> controller) |
| 9 : super(controller); | 9 : super(controller); |
| 10 | 10 |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 void pause([Future resumeSignal]) { | 533 void pause([Future resumeSignal]) { |
| 534 if (resumeSignal != null) resumeSignal.then(_resume); | 534 if (resumeSignal != null) resumeSignal.then(_resume); |
| 535 _pauseCount++; | 535 _pauseCount++; |
| 536 } | 536 } |
| 537 void resume() { _resume(null); } | 537 void resume() { _resume(null); } |
| 538 void _resume(_) { | 538 void _resume(_) { |
| 539 if (_pauseCount > 0) _pauseCount--; | 539 if (_pauseCount > 0) _pauseCount--; |
| 540 } | 540 } |
| 541 Future cancel() { return new _Future.immediate(null); } | 541 Future cancel() { return new _Future.immediate(null); } |
| 542 bool get isPaused => _pauseCount > 0; | 542 bool get isPaused => _pauseCount > 0; |
| 543 Future/*<E>*/ asFuture/*<E>*/([Object/*=E*/ value]) => new _Future/*<E>*/(); | 543 Future<E> asFuture<E>([E value]) => new _Future<E>(); |
| 544 } | 544 } |
| OLD | NEW |