YoastSEO_Vendor\GuzzleHttp\Promise
each_limit_all() Yoast 1.0
Like each_limit, but ensures that no promise in the given $iterable argument is rejected. If any promise is rejected, then the aggregate promise is rejected with the encountered rejection.
Хуков нет.
Возвращает
PromiseInterface.
Использование
each_limit_all( $iterable, $concurrency, $onFulfilled );
- $iterable(смешанный) (обязательный)
- $concurrency(число/callable) (обязательный)
- $onFulfilled(callable)
По умолчанию: null
Код each_limit_all() each limit all Yoast 15.6.2
function each_limit_all($iterable, $concurrency, callable $onFulfilled = null)
{
return each_limit($iterable, $concurrency, $onFulfilled, function ($reason, $idx, \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $aggregate) {
$aggregate->reject($reason);
});
}