1.0.2 • Published 6 months ago

promise-all-pool v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Description

A tool to run promises concurrently like Promise.all but has an additional pool limit

How to use

import { promiseAllPool } from 'promise-all-pool'

async function main() {
    const promises = [1, 2, 3, 4, 5].map((it) => () => Promise.resolve(it));
    const result = await promiseAllPool(promises, 2);
    console.log('result', result);
}

Test and Build

pnpm install
pnpm test
pnpm build
1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago