public function TaskQueue::add in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\PromiseCode
public function add(callable $task) {
$this->queue[] = $task;
}