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

    @rushabhshroff/promisepool

    1.0.1 • Public • Published

    Promise Pool

    Installation

    npm install @rushabhshroff/promisepool
    
    or
    
    yarn add @rushabhshroff/promisepool
    

    Usage

    const PromisePool = require('@rushabhshroff/promisepool');
    
    //Create a new pool with concurrency 3
    
    let pool = new PromisePool(3)
    
    pool.promises.add(()=>yourPromise());
    
    pool.start().then((results)=>{
        // Do anything with your results array
    }).catch((err)=>{
        //one of your promise was rejected error is thrown here.
    })
    

    Install

    npm i @rushabhshroff/promisepool

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    2.07 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar