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

Breadcrumb

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

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

Each

Namespace

GuzzleHttp\Promise

Code

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);
    });
}

API Navigation

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