@lucid-softworks/promise-map
v0.1.0
Published
Map array values concurrently with bounded concurrency.
Maintainers
Readme
@lucid-softworks/promise-map
Map array values concurrently while preserving input order. By default all
items may run; pass a positive concurrency to bound active work.
import { mapPromises } from "@lucid-softworks/promise-map";
const users = await mapPromises(ids, fetchUser, { concurrency: 4 });