Index: pkg/watcher/lib/src/async_queue.dart |
diff --git a/pkg/watcher/lib/src/async_queue.dart b/pkg/watcher/lib/src/async_queue.dart |
index 9456631af12107687e6ca899a47a4d732210581f..8ac0cdfe1c031dbd3aedb13dcf87ceb31d7a552e 100644 |
--- a/pkg/watcher/lib/src/async_queue.dart |
+++ b/pkg/watcher/lib/src/async_queue.dart |
@@ -8,7 +8,6 @@ import 'dart:async'; |
import 'dart:collection'; |
typedef Future ItemProcessor<T>(T item); |
-typedef void ErrorHandler(error); |
Bob Nystrom
2013/11/12 21:31:07
Why remove this typedef?
nweiz
2013/11/12 21:54:29
dart:async now accepts either fn(error) or fn(erro
|
/// A queue of items that are sequentially, asynchronously processed. |
/// |
@@ -35,9 +34,9 @@ class AsyncQueue<T> { |
/// The handler for errors thrown during processing. |
/// |
/// Used to avoid top-leveling asynchronous errors. |
- final ErrorHandler _errorHandler; |
+ final Function _errorHandler; |
- AsyncQueue(this._processor, {ErrorHandler onError}) |
+ AsyncQueue(this._processor, {Function onError}) |
: _errorHandler = onError; |
/// Enqueues [item] to be processed and starts asynchronously processing it |