GuzzleHttpPromiseall

Given an array of promises, return a promise that is fulfilled when all the items in the array are fulfilled.

Description

GuzzleHttp\Promise\all( (mixed) $promises ); 

The promise's fulfillment value is an array with fulfillment values at respective positions to the original array. If any promise in the array rejects, the returned promise is rejected with the rejection reason.

Parameters (1)

0. $promises (mixed)
Promises or values.

Usage

  1. if ( !function_exists( 'GuzzleHttp\Promise\all' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Promise/functions.php'; 
  3.  
  4. // Promises or values. 
  5. $promises = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = GuzzleHttp\Promise\all($promises); 
  9.  

Defined (1)

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

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