You are here

interface TaskQueueInterface in Auth0 Single Sign On 8.2

Hierarchy

Expanded class hierarchy of TaskQueueInterface

All classes that implement TaskQueueInterface

File

vendor/guzzlehttp/promises/src/TaskQueueInterface.php, line 4

Namespace

GuzzleHttp\Promise
View source
interface TaskQueueInterface {

  /**
   * Returns true if the queue is empty.
   *
   * @return bool
   */
  public function isEmpty();

  /**
   * Adds a task to the queue that will be executed the next time run is
   * called.
   *
   * @param callable $task
   */
  public function add(callable $task);

  /**
   * Execute all of the pending task in the queue.
   */
  public function run();

}

Members

Namesort descending Modifiers Type Description 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