kiss-promise-pool

0.0.2 • Public • Published

KISS Promise Pool

When there is multiple async tasks to run. R

 return await PromisePool.toArray(
            2, // Number of concurrent tasks
            [1,2,3,4,5,6,7], // Source data
            async n => {
                // do something async with n
            }
)    

Readme

Keywords

Package Sidebar

Install

npm i kiss-promise-pool

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

2.52 kB

Total Files

3

Last publish

Collaborators

  • granson