function Utils::inspectAll
Waits on all of the provided promises, but does not unwrap rejected promises as thrown exception.
Returns an array of inspection state arrays.
Parameters
PromiseInterface[] $promises Traversable of promises to wait upon.:
See also
inspect for the inspection state array format.
File
-
vendor/
guzzlehttp/ promises/ src/ Utils.php, line 96
Class
Namespace
GuzzleHttp\PromiseCode
public static function inspectAll($promises) : array {
$results = [];
foreach ($promises as $key => $promise) {
$results[$key] = self::inspect($promise);
}
return $results;
}