GuzzleHttpPromiseeach_limit_all

Like each_limit, but ensures that no promise in the given $iterable argument is rejected.

Description

GuzzleHttp\Promise\each_limit_all( (mixed) $iterable, (int|callable) $concurrency, (null) callable $onFulfilled = null ); 

If any promise is rejected, then the aggregate promise is rejected with the encountered rejection.

Parameters (3)

0. $iterable (mixed)
The iterable.
1. $concurrency (int|callable)
The concurrency.
2. $onfulfilled — Optional. (null) => callable $onFulfilled = null
The onfulfilled.

Usage

  1. if ( !function_exists( 'GuzzleHttp\Promise\each_limit_all' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Promise/functions.php'; 
  3.  
  4. // The iterable. 
  5. $iterable = null; 
  6.  
  7. // The concurrency. 
  8. $concurrency = null; 
  9.  
  10. // The onfulfilled. 
  11. $onfulfilled = callable $onFulfilled = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = GuzzleHttp\Promise\each_limit_all($iterable, $concurrency, $onfulfilled); 
  15.  

Defined (1)

The function is defined in the following location(s).

/lib/Azure/GuzzleHttp/Promise/functions.php