You are here

public function TaskQueue::run in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/promises/src/TaskQueue.php \GuzzleHttp\Promise\TaskQueue::run()

Execute all of the pending task in the queue.

1 call to TaskQueue::run()
TaskQueue::__construct in vendor/guzzlehttp/promises/src/TaskQueue.php

File

vendor/guzzlehttp/promises/src/TaskQueue.php, line 57

Class

TaskQueue
A task queue that executes tasks in a FIFO order.

Namespace

GuzzleHttp\Promise

Code

public function run() {
  while ($task = array_shift($this->queue)) {
    $task();
  }
}