WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

YoastSEO_Vendor\GuzzleHttp\Promise

queue() Yoast 1.0

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();
}

Хуков нет.

Возвращает

TaskQueueInterface.

Использование

queue( \YoastSEO_Vendor\GuzzleHttp\Promise\TaskQueueInterface $assign );
$assign(TaskQueueчислоerface) (обязательный)
Optionally specify a new queue instance.

Код queue() Yoast 15.6.2

<?php
function queue(\YoastSEO_Vendor\GuzzleHttp\Promise\TaskQueueInterface $assign = null)
{
    static $queue;
    if ($assign) {
        $queue = $assign;
    } elseif (!$queue) {
        $queue = new \YoastSEO_Vendor\GuzzleHttp\Promise\TaskQueue();
    }
    return $queue;
}