GuzzleHttpPromisequeue

Get the global task queue used for promise resolution.

Description

GuzzleHttp\Promise\queue( (constant) GuzzleHttp\Promise\TaskQueueInterface $assign = null ); 

This task queue MUST be run in an event loop in order for promises to be settled asynchronously. It will be automatically run when synchronously waiting on a promise.

Parameters (1)

0. $assign — Optional. (constant) => GuzzleHttp\Promise\TaskQueueInterface $assign = null
Optionally specify a new queue instance.

Usage

  1. if ( !function_exists( 'GuzzleHttp\Promise\queue' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Promise/functions.php'; 
  3.  
  4. // Optionally specify a new queue instance. 
  5. $assign = GuzzleHttp\Promise\TaskQueueInterface $assign = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = GuzzleHttp\Promise\queue($assign); 
  9.  

Defined (1)

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

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