# depicter/1.9.2/modules/GuzzleHttp/Promise/TaskQueueInterface.php

Depicter — Popup &amp; Slider Builder, version 1.9.2. 25 lines.

- Page: https://pluginprobe.com/plugins/depicter/1.9.2/code/modules/GuzzleHttp/Promise/TaskQueueInterface.php
- Raw: https://pluginprobe.com/plugins/depicter/1.9.2/raw/modules/GuzzleHttp/Promise/TaskQueueInterface.php
- Modified: 2022-06-01T06:26:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/1.9.2/code/modules/GuzzleHttp/Promise/TaskQueueInterface.php#L10-L20`.

```php
<?php

namespace Depicter\GuzzleHttp\Promise;

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.
     */
    public function add(callable $task);

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

```
