Skip to content

Commit

Permalink
Merge pull request #1540 from ORESoftware/patch-1
Browse files Browse the repository at this point in the history
need to demonstrate error cb not just drain cb
  • Loading branch information
aearly committed Jun 3, 2018
2 parents 117ced4 + eb3796a commit 2a135a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/queue.js
Expand Up @@ -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');
Expand Down

0 comments on commit 2a135a4

Please sign in to comment.