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

Unified Diff: lib/src/utils/cancelable_future.dart

Issue 2993093002: package barback: Update the comment style generic syntax. (Closed)
Patch Set: fix code Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/utils.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/utils/cancelable_future.dart
diff --git a/lib/src/utils/cancelable_future.dart b/lib/src/utils/cancelable_future.dart
index aaa5e3651fca3c283e8c422b8c98418f932090a9..78a391fae4a7bf565671e018937d5d131fb53825 100644
--- a/lib/src/utils/cancelable_future.dart
+++ b/lib/src/utils/cancelable_future.dart
@@ -29,8 +29,7 @@ class CancelableFuture<T> implements Future<T> {
Stream<T> asStream() => _completer.future.asStream();
Future<T> catchError(Function onError, {bool test(Object error)}) =>
_completer.future.catchError(onError, test: test);
- Future/*<S>*/ then/*<S>*/(/*=FutureOr<S>*/ onValue(T value),
- {Function onError}) =>
+ Future<S> then<S>(FutureOr<S> onValue(T value), {Function onError}) =>
_completer.future.then(onValue, onError: onError);
Future<T> whenComplete(action()) => _completer.future.whenComplete(action);
Future<T> timeout(Duration timeLimit, {void onTimeout()}) =>
« no previous file with comments | « lib/src/utils.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698