Chromium Code Reviews| Index: pkg/barback/lib/src/cancelable_future.dart |
| diff --git a/pkg/barback/lib/src/cancelable_future.dart b/pkg/barback/lib/src/cancelable_future.dart |
| index 284df411362d8dbcfd0af110d37c960a4f7b5625..d15c1a2c32c11c556321179e6f4daf59b245b438 100644 |
| --- a/pkg/barback/lib/src/cancelable_future.dart |
| +++ b/pkg/barback/lib/src/cancelable_future.dart |
| @@ -32,7 +32,8 @@ class CancelableFuture<T> implements Future<T> { |
| Future then(onValue(T value), {Function onError}) => |
| _completer.future.then(onValue, onError: onError); |
| Future<T> whenComplete(action()) => _completer.future.whenComplete(action); |
| - |
| + Future timeout(Duration timeLimit, [void onTimeout()]) => |
| + _completer.future.timeout(timeLimit, onTimeout); |
|
nweiz
2013/11/27 20:50:36
Style nit: indent two spaces. Same for other files
Lasse Reichstein Nielsen
2013/11/28 08:11:24
Done, for consistency, but I'm fairly sure the sty
|
| /// Cancels this future. |
| void cancel() { |
| _canceled = true; |