then-queuea simple asynchronous queue
npm install then-queue
new Queue()```js var Queue = require('then-queue'); var q = new Queue(); ``` A fresh queue!
queue.push(item)Push an item onto the queue
queue.pop() -> Promise ItemPop an item from the queue
queue.lengthAmount of items in the queue (note that this can be negative if
pophas been called more times than
length-changedevent gets emitted whenever
pushhas been called. You could use it to spawn/kill workers when the length changes.