function Each::ofLimitAll
Like 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.
Parameters
mixed $iterable:
int|callable $concurrency:
File
-
vendor/
guzzlehttp/ promises/ src/ Each.php, line 67
Class
Namespace
GuzzleHttp\PromiseCode
public static function ofLimitAll($iterable, $concurrency, ?callable $onFulfilled = null) : PromiseInterface {
return self::ofLimit($iterable, $concurrency, $onFulfilled, function ($reason, $idx, PromiseInterface $aggregate) : void {
$aggregate->reject($reason);
});
}