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