You are here

public function TaskQueueInterface::add in Lockr 7.3

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

Parameters

callable $task:

1 method overrides TaskQueueInterface::add()
TaskQueue::add in vendor/guzzlehttp/promises/src/TaskQueue.php
Adds a task to the queue that will be executed the next time run is called.

File

vendor/guzzlehttp/promises/src/TaskQueueInterface.php, line 19

Class

TaskQueueInterface

Namespace

GuzzleHttp\Promise

Code

public function add(callable $task);