Async Utilities for Module Node Development.
npm install @kristoferbaxter/asyncThis project contains utilities one might use for Async work in ES2015 and later.
Utility that completes as many simultaneous Promise resolutions as concurrency is defined. If you have expensive operations that do not need a stable result order for completion, then this utility is for you.
``typescript`
async function pool
items: Array
iteratorFn: (item: R, items: Array
concurrency: number = cpus().length,
): Promise
Passing an Array, and an interator function that executes an expensive operation resulting in T will happen concurrently as determined by concurrency`.