You are here

function inspect_all in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/promises/src/functions.php \GuzzleHttp\Promise\inspect_all()

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.:

Return value

array

See also

GuzzleHttp\Promise\inspect for the inspection state array format.

File

vendor/guzzlehttp/promises/src/functions.php, line 166

Namespace

GuzzleHttp\Promise

Code

function inspect_all($promises) {
  $results = [];
  foreach ($promises as $key => $promise) {
    $results[$key] = inspect($promise);
  }
  return $results;
}