public function TaskQueue::add in Auth0 Single Sign On 8.2
Adds a task to the queue that will be executed the next time run is called.
Parameters
callable $task:
Overrides TaskQueueInterface::add
File
- vendor/
guzzlehttp/ promises/ src/ TaskQueue.php, line 38
Class
- TaskQueue
- A task queue that executes tasks in a FIFO order.
Namespace
GuzzleHttp\PromiseCode
public function add(callable $task) {
$this->queue[] = $task;
}