Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TaskQueueInterface.php

interface TaskQueueInterface

Hierarchy

  • interface \GuzzleHttp\Promise\TaskQueueInterface

Expanded class hierarchy of TaskQueueInterface

All classes that implement TaskQueueInterface

File

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

Namespace

GuzzleHttp\Promise
View source
interface TaskQueueInterface {
    
    /**
     * Returns true if the queue is empty.
     */
    public function isEmpty() : bool;
    
    /**
     * Adds a task to the queue that will be executed the next time run is
     * called.
     */
    public function add(callable $task) : void;
    
    /**
     * Execute all of the pending task in the queue.
     */
    public function run() : void;

}

Members

Title Sort descending Modifiers Object type Summary 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
RSS feed
Powered by Drupal