summaryrefslogtreecommitdiff
path: root/lib/queue.js
diff options
context:
space:
mode:
authorAlex Early <alexander.early@gmail.com>2016-05-31 14:05:28 -0700
committerAlex Early <alexander.early@gmail.com>2016-05-31 14:05:28 -0700
commit4c78fc25b40165455cb812b23bf0d5077150c890 (patch)
tree0c8362d0f5f4077ab157ab55722a4947fde6095c /lib/queue.js
parentf97c1541632812216ed8dfe1306e5cba689cc17d (diff)
parent6c3a2ef2848908d03042ef0446165568a7113fa0 (diff)
downloadasync-4c78fc25b40165455cb812b23bf0d5077150c890.tar.gz
Merge pull request #1170 from jnordberg/queue-error
Add optional error handler to queues
Diffstat (limited to 'lib/queue.js')
-rw-r--r--lib/queue.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/queue.js b/lib/queue.js
index 24b187e..ac1987a 100644
--- a/lib/queue.js
+++ b/lib/queue.js
@@ -34,6 +34,8 @@ import queue from './internal/queue';
* from the `queue` is given to a `worker`.
* @property {Function} drain - a callback that is called when the last item
* from the `queue` has returned from the `worker`.
+ * @property {Function} error - a callback that is called when a task errors.
+ * Has the signature `function(error, task)`.
* @property {boolean} paused - a boolean for determining whether the queue is
* in a paused state.
* @property {Function} pause - a function that pauses the processing of tasks