| 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 4454f5cf2b383f143f082121dc0ce668d743123a..84c19f148e605903d8d9be13e38972f70f12248a 100644
|
| --- a/pkg/barback/lib/src/cancelable_future.dart
|
| +++ b/pkg/barback/lib/src/cancelable_future.dart
|
| @@ -32,8 +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);
|
| + Future timeout(Duration timeLimit, {void onTimeout()}) =>
|
| + _completer.future.timeout(timeLimit, onTimeout: onTimeout);
|
| /// Cancels this future.
|
| void cancel() {
|
| _canceled = true;
|
|
|