fn-queue
v0.2.1
Published
Utility for function queues
Downloads
3
Readme
fn-queue
utility for running functions in a queued manner
Install
$ npm install fn-queue
Usage
var Queue = require('fn-queue')
var q = new Queue()
q.add(function add(a, b){
return a + b
})
q.add(function mul(a, b){
return a * b
})
q.execute(4, 5)
//or, if you want the results
q.collect(4,5) // [9, 20]