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

Side by Side Diff: lib/src/delegate/stream_subscription.dart

Issue 2161283002: Fix Dart 1.17 strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/async.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « lib/src/delegate/future.dart ('k') | lib/src/typed/future.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) 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
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 }
OLDNEW
« no previous file with comments | « lib/src/delegate/future.dart ('k') | lib/src/typed/future.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698