summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/queue.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/queue.js b/lib/queue.js
index 683f227..936ccd9 100644
--- a/lib/queue.js
+++ b/lib/queue.js
@@ -36,6 +36,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