GuzzleHttpPromiseunwrap

Waits on all of the provided promises and returns the fulfilled values.

Description

(array) GuzzleHttp\Promise\unwrap( (mixed) $promises ); 

Returns an array that contains the value of each promise (in the same order the promises were provided). An exception is thrown if any of the promises are rejected.

Returns (array)

Parameters (1)

0. $promises (mixed)
Iterable of PromiseInterface objects to wait on.

Usage

  1. if ( !function_exists( 'GuzzleHttp\Promise\unwrap' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Promise/functions.php'; 
  3.  
  4. // Iterable of PromiseInterface objects to wait on. 
  5. $promises = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = GuzzleHttp\Promise\unwrap($promises); 
  9.  

Defined (1)

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

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