You are here

public function TaskQueue::add in Zircon Profile 8.0

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

Adds a task to the queue that will be executed the next time run is called.

Parameters

callable $task:

File

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

Class

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

Namespace

GuzzleHttp\Promise

Code

public function add(callable $task) {
  $this->queue[] = $task;
}