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.
Namespace: GuzzleHttp\Promise
Deprecated: each_limit will be removed in guzzlehttp/promises:2.0. Use Each::ofLimit instead.
Located at functions.php
Deprecated: each_limit will be removed in guzzlehttp/promises:2.0. Use Each::ofLimit instead.
Located at functions.php
Parameters summary
mixed |
$iterable |
|
integer|callable |
$concurrency |
|
callable |
$onFulfilled = null |
|
callable |
$onRejected = null |
Return value summary
|
PromiseInterface |