# searchpro/4.1.17/BerqWP/vendor/guzzlehttp/promises/src/TaskQueueInterface.php

BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS &amp; JavaScript, version 4.1.17. 25 lines.

- Page: https://pluginprobe.com/plugins/searchpro/4.1.17/code/BerqWP/vendor/guzzlehttp/promises/src/TaskQueueInterface.php
- Raw: https://pluginprobe.com/plugins/searchpro/4.1.17/raw/BerqWP/vendor/guzzlehttp/promises/src/TaskQueueInterface.php
- Modified: 2025-07-18T08:37:24+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/searchpro/4.1.17/code/BerqWP/vendor/guzzlehttp/promises/src/TaskQueueInterface.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace GuzzleHttp\Promise;

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;
}

```
