Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Utils.php

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

Utils

Namespace

GuzzleHttp\Promise

Code

public static function inspectAll($promises) : array {
    $results = [];
    foreach ($promises as $key => $promise) {
        $results[$key] = self::inspect($promise);
    }
    return $results;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal