all-each
v0.0.2
Published
Utility to run promise parallel.
Downloads
290
Readme
all-each
Utility to run promise parallel.
To install package:
npm install all-each
Usage
import allEach from 'all-each';
allEach(
[1, 2, 3]
0,
async (item, idx) => console.log(idx, item),
)
Docs
limiter
- count of concurrencyarr
- list of items to iteratecallback
- async callback (item, idx) => Promise;getDelay
- fn with dynamic delaying execution of promises
Deploy
To install dependencies:
npm install
To build:
npm build
This project was created using bun init
in bun v1.1.0. Bun is a fast all-in-one JavaScript runtime.