Wondering what’s next for npm?Check out our public roadmap! »

    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]

    Install

    npm i fn-queue

    DownloadsWeekly Downloads

    2

    Version

    0.2.1

    License

    MIT

    Last publish

    Collaborators

    • avatar