Function queue
Get the global task queue used for promise resolution.
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.
while ($eventLoop->isRunning()) { GuzzleHttp\Promise\queue()->run(); }
Namespace: GuzzleHttp\Promise
Deprecated: queue will be removed in guzzlehttp/promises:2.0. Use Utils::queue instead.
Located at functions.php
Deprecated: queue will be removed in guzzlehttp/promises:2.0. Use Utils::queue instead.
Located at functions.php
Parameters summary
|
$assign = null |
Optionally specify a new queue instance. |
Return value summary
|
TaskQueueInterface |