then-queue
a simple asynchronous queue



Installation
npm install then-queue
API
$3
``
js
var Queue = require('then-queue');
var q = new Queue();
`
A fresh queue!
$3
Push an item onto the queue
$3
Pop an item from the queue
$3
Amount of items in the queue (note that this can be negative if pop
has been called more times than push
).
$3
The length-changed
event gets emitted whenever pop
or push` has been called. You could use it to spawn/kill workers when the length changes.