interface TaskQueueInterface
Hierarchy
- interface \GuzzleHttp\Promise\TaskQueueInterface
Expanded class hierarchy of TaskQueueInterface
All classes that implement TaskQueueInterface
File
-
vendor/
guzzlehttp/ promises/ src/ TaskQueueInterface.php, line 7
Namespace
GuzzleHttp\PromiseView source
interface TaskQueueInterface {
/**
* Returns true if the queue is empty.
*/
public function isEmpty() : bool;
/**
* Adds a task to the queue that will be executed the next time run is
* called.
*/
public function add(callable $task) : void;
/**
* Execute all of the pending task in the queue.
*/
public function run() : void;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
TaskQueueInterface::add | public | function | Adds a task to the queue that will be executed the next time run is called. |
1 |
TaskQueueInterface::isEmpty | public | function | Returns true if the queue is empty. | 1 |
TaskQueueInterface::run | public | function | Execute all of the pending task in the queue. | 1 |