When the processItem starts. Does this start as soon as some items are queued? Or should the for loop finish before the first element in the queue starts execution?
var processItem = function (item, callback) {
console.log(item)
callback();
}
var myQueue = async.queue(processItem, 2)
for (index = 0; index < 1000; ++index) {
myQueue.push(index)
}
source
share