TaskQueueInterface
in
Table of Contents
- add() : mixed
- Adds a task to the queue that will be executed the next time run is called.
- isEmpty() : bool
- Returns true if the queue is empty.
- run() : mixed
- Execute all of the pending task in the queue.
Methods
add()
Adds a task to the queue that will be executed the next time run is called.
public
add(callable $task) : mixed
Parameters
- $task : callable
Return values
mixed —isEmpty()
Returns true if the queue is empty.
public
isEmpty() : bool
Return values
bool —run()
Execute all of the pending task in the queue.
public
run() : mixed