The argument type of the executor. That argument must be provided by the generator.
The result type of the executor, and propagates that result to this function's Promise.
the number of the maximum concurrent workers.
a provider function that returns an executor for a worker according to the T
typed value that comes from the generator.
Optional
reason: unknowna generator function that returns an argument for executorProvider
. If this generator returns done
value, this function finishes the workers' executions and returns the result.
Generated using TypeDoc
runConcurrentFlatten runs executors that come from
executorProvider
by at mostmaxConcurrency
workers. The workers continue to run the executors until the generator that is supplied bygeneratorFunction
notifiesdone
, i.e. once the generator has becomedone
.Returns
a promise that returns an array of
R
that is flattened of all worker's results.