Function each_limit
Like each, but only allows a certain number of outstanding promises at any given time.
$concurrency may be an integer or a function that accepts the number of pending promises and returns a numeric concurrency limit value to allow for dynamic a concurrency size.
mixed |
$iterable |
|
integer|callable |
$concurrency |
|
callable |
$onFulfilled = null |
|
callable |
$onRejected = null |
|
PromiseInterface |