SDK for PHP 3.x

TaskQueueInterface
in

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

run()

Execute all of the pending task in the queue.

public run() : void
On this page