fn-queue

0.2.1 • Public • Published

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]

Readme

Keywords

Package Sidebar

Install

npm i fn-queue

Weekly Downloads

6

Version

0.2.1

License

MIT

Last publish

Collaborators

  • radubrehar