| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import '../typed/stream_subscription.dart'; | 7 import '../typed/stream_subscription.dart'; |
| 8 | 8 |
| 9 /// Simple delegating wrapper around a [StreamSubscription]. | 9 /// Simple delegating wrapper around a [StreamSubscription]. |
| 10 /// | 10 /// |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 void pause([Future resumeFuture]) { | 44 void pause([Future resumeFuture]) { |
| 45 _source.pause(resumeFuture); | 45 _source.pause(resumeFuture); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void resume() { | 48 void resume() { |
| 49 _source.resume(); | 49 _source.resume(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 Future cancel() => _source.cancel(); | 52 Future cancel() => _source.cancel(); |
| 53 | 53 |
| 54 Future asFuture([futureValue]) => _source.asFuture(futureValue); | 54 Future/*<E>*/ asFuture/*<E>*/([/*=E*/ futureValue]) => |
| 55 _source.asFuture(futureValue); |
| 55 | 56 |
| 56 bool get isPaused => _source.isPaused; | 57 bool get isPaused => _source.isPaused; |
| 57 } | 58 } |
| OLD | NEW |