Documentation

TaskQueueInterface

Table of Contents

Methods

add()  : void
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()  : void
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) : void
Parameters
$task : callable

isEmpty()

Returns true if the queue is empty.

public isEmpty() : bool
Return values
bool

        
On this page

Search results