Automattic\WooCommerce\Vendor\GraphQL\Executor\Promise\Adapter

SyncPromiseQueue::runpublic staticWC 1.0

Process all queued promises until the queue is empty.

Method of the class: SyncPromiseQueue{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = SyncPromiseQueue::run(): void;

SyncPromiseQueue::run() code WC 10.9.1

public static function run(): void
{
    $queue = self::queue();
    while (! $queue->isEmpty()) {
        $task = $queue->dequeue();
        $task();
    }
}