Open Journal Systems  3.3.0
GuzzleHttp\Promise\TaskQueueInterface Interface Reference
Inheritance diagram for GuzzleHttp\Promise\TaskQueueInterface:
GuzzleHttp\Promise\TaskQueue

Public Member Functions

 add (callable $task)
 
 isEmpty ()
 
 run ()
 

Detailed Description

Definition at line 4 of file TaskQueueInterface.php.

Member Function Documentation

◆ add()

GuzzleHttp\Promise\TaskQueueInterface::add ( callable  $task)

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

Parameters
callable$task

Implemented in GuzzleHttp\Promise\TaskQueue.

◆ isEmpty()

GuzzleHttp\Promise\TaskQueueInterface::isEmpty ( )

Returns true if the queue is empty.

Returns
bool

Implemented in GuzzleHttp\Promise\TaskQueue.

◆ run()

GuzzleHttp\Promise\TaskQueueInterface::run ( )

Execute all of the pending task in the queue.

Implemented in GuzzleHttp\Promise\TaskQueue.


The documentation for this interface was generated from the following file: