staque
build multiple, on-the-fly synchronous job queues
Usage
$ npm install staque
Create a new job queue and load a job.
var queue = staque; queue;
staque also provides sub-queuing. This is useful if you are doing something like queueing jobs by client. Each sub-queue acts independently. To load a job into a sub-queue, just provide a sub-queue key.
Note: Not providing a sub-queue just puts your job in a queue called _default
.
queue; queue;
Callbacks are also optional...
queue;
You can request the status of your queues with the stat()
call. The call will return an array of the queues, current jobs, and other data.
queue;