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

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

Issue 2660333005: Change generic comment syntax to real generic syntax. (Closed)
Patch Set: Update version. Created 3 years, 10 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/typed/stream.dart ('k') | lib/src/typed_stream_transformer.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 class TypeSafeStreamSubscription<T> implements StreamSubscription<T> { 7 class TypeSafeStreamSubscription<T> implements StreamSubscription<T> {
8 final StreamSubscription _subscription; 8 final StreamSubscription _subscription;
9 9
10 bool get isPaused => _subscription.isPaused; 10 bool get isPaused => _subscription.isPaused;
(...skipping 15 matching lines...) Expand all
26 void pause([Future resumeFuture]) { 26 void pause([Future resumeFuture]) {
27 _subscription.pause(resumeFuture); 27 _subscription.pause(resumeFuture);
28 } 28 }
29 29
30 void resume() { 30 void resume() {
31 _subscription.resume(); 31 _subscription.resume();
32 } 32 }
33 33
34 Future cancel() => _subscription.cancel(); 34 Future cancel() => _subscription.cancel();
35 35
36 Future/*<E>*/ asFuture/*<E>*/([/*=E*/ futureValue]) => 36 Future<E> asFuture<E>([E futureValue]) =>
37 _subscription.asFuture(futureValue); 37 _subscription.asFuture(futureValue);
38 } 38 }
OLDNEW
« no previous file with comments | « lib/src/typed/stream.dart ('k') | lib/src/typed_stream_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698