async nodejs execution order <p>When does processItem start executing. Does it start as soon as some items are pushed onto the queue? Or must the for loop finish before the first item on the queue starts executing?</p> <pre><code>var processItem = function (item, callback) { console.log(item) callback(); } var myQueue = async.queue(processItem, 2) for (index = 0; index &lt; 1000; ++index) { myQueue.push(index) } </code></pre>