summaryrefslogtreecommitdiff
path: root/lib/queue.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/queue.js')
-rw-r--r--lib/queue.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/queue.js b/lib/queue.js
index 2ba1747..7a201c4 100644
--- a/lib/queue.js
+++ b/lib/queue.js
@@ -88,6 +88,11 @@ import wrapAsync from './internal/wrapAsync';
* console.log('all items have been processed');
* };
*
+ * // assign an error callback
+ * q.error = function(err, task) {
+ * console.error('task experienced an error');
+ * };
+ *
* // add some items to the queue
* q.push({name: 'foo'}, function(err) {
* console.log('finished processing foo');