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 promise
s 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
if ( !function_exists( 'GuzzleHttp\Promise\queue' ) ) { require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Promise/functions.php'; } // Optionally specify a new queue instance. $assign = GuzzleHttp\Promise\TaskQueueInterface $assign = null; // NOTICE! Understand what this does before running. $result = GuzzleHttp\Promise\queue($assign);
Defined (1)
The function is defined in the following location(s).