Function forEachAsyncParallel
- forEachAsyncParallel<T>(iterable, callback, parallelism?): Promise<T[]>
-
Parameters
-
iterable: Iterable<T>
-
callback: ((item, index) => PromiseLike<any>)
-
- (item, index): PromiseLike<any>
-
Returns PromiseLike<any>
-
parallelism: number = 2
Returns Promise<T[]>
Execute callback async in parallel on each of the items in the specified array