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

Unified Diff: lib/src/delegate/future.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/delegate/event_sink.dart ('k') | lib/src/delegate/sink.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/delegate/future.dart
diff --git a/lib/src/delegate/future.dart b/lib/src/delegate/future.dart
index e30d41d94fd7264dba52a2d80dbd13fbc2af7588..4704343da36da71f5f499d3dcda147886b6aa116 100644
--- a/lib/src/delegate/future.dart
+++ b/lib/src/delegate/future.dart
@@ -19,15 +19,15 @@ class DelegatingFuture<T> implements Future<T> {
/// This soundly converts a [Future] to a `Future<T>`, regardless of its
/// original generic type, by asserting that its value is an instance of `T`
/// whenever it's provided. If it's not, the future throws a [CastError].
- static Future/*<T>*/ typed/*<T>*/(Future future) =>
- future is Future/*<T>*/ ? future : new TypeSafeFuture/*<T>*/(future);
+ static Future<T> typed<T>(Future future) =>
+ future is Future<T> ? future : new TypeSafeFuture<T>(future);
Stream<T> asStream() => _future.asStream();
Future<T> catchError(Function onError, {bool test(Object error)}) =>
_future.catchError(onError, test: test);
- Future/*<S>*/ then/*<S>*/(dynamic onValue(T value), {Function onError}) =>
+ Future<S> then<S>(dynamic onValue(T value), {Function onError}) =>
_future.then(onValue, onError: onError);
Future<T> whenComplete(action()) => _future.whenComplete(action);
« no previous file with comments | « lib/src/delegate/event_sink.dart ('k') | lib/src/delegate/sink.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698