Chromium Code Reviews| Index: lib/src/delegate/future.dart |
| diff --git a/lib/src/delegate/future.dart b/lib/src/delegate/future.dart |
| index 5e84e4f626b9cda386021777ab189f96edf70fae..bfc075b794d09eda0c35f38a862cedc60090fc18 100644 |
| --- a/lib/src/delegate/future.dart |
| +++ b/lib/src/delegate/future.dart |
| @@ -7,20 +7,20 @@ import 'dart:async'; |
| /// A wrapper that forwards calls to a [Future]. |
| class DelegatingFuture<T> implements Future<T> { |
| /// The wrapped [Future]. |
| - final Future _future; |
| + final Future<T> _future; |
|
Lasse Reichstein Nielsen
2016/03/29 21:53:59
I would have thought that this was a feature - you
nweiz
2016/03/30 00:57:18
You're still allowed to pass Future<Subclass> to a
|
| DelegatingFuture(this._future); |
| Stream<T> asStream() => _future.asStream(); |
| - Future catchError(Function onError, {bool test(error)}) => |
| + Future catchError(Function onError, {bool test(Object error)}) => |
| _future.catchError(onError, test: test); |
| - Future then(onValue(T value), {Function onError}) => |
| + Future/*<S>*/ then/*<S>*/(/*=S*/ onValue(T value), {Function onError}) => |
| _future.then(onValue, onError: onError); |
| Future<T> whenComplete(action()) => _future.whenComplete(action); |
| - Future timeout(Duration timeLimit, {void onTimeout()}) => |
| + Future<T> timeout(Duration timeLimit, {void onTimeout()}) => |
| _future.timeout(timeLimit, onTimeout: onTimeout); |
| } |