You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// create a queue object with concurrency 2varq=async.queue(function(task,callback){console.log('hello '+task.name);callback();},2);// assign a callbackq.drain=function(){console.log('all items have been processed');};
is there an
q.onError=function(err){}
handler that we can use?
I don't think q.drain is an error-first callback, and I don't want to pass a callback for each q.push or q.unshift call, I just want to use one error-first callback.
This should exist and be in the docs, right?
The text was updated successfully, but these errors were encountered:
Looking at the docs for async.queue
https://caolan.github.io/async/docs.html#queue
is there an
handler that we can use?
I don't think
q.drain
is an error-first callback, and I don't want to pass a callback for eachq.push
orq.unshift
call, I just want to use one error-first callback.This should exist and be in the docs, right?
The text was updated successfully, but these errors were encountered: