From 6c3a2ef2848908d03042ef0446165568a7113fa0 Mon Sep 17 00:00:00 2001 From: Johan Nordberg Date: Tue, 31 May 2016 22:59:03 +0200 Subject: Document queue error callback --- lib/queue.js | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1