AggregateException.php
7 months ago
CancellationException.php
7 months ago
Coroutine.php
7 months ago
Create.php
7 months ago
Each.php
7 months ago
EachPromise.php
7 months ago
FulfilledPromise.php
7 months ago
Is.php
7 months ago
Promise.php
7 months ago
PromiseInterface.php
7 months ago
PromisorInterface.php
7 months ago
RejectedPromise.php
7 months ago
RejectionException.php
7 months ago
TaskQueue.php
7 months ago
TaskQueueInterface.php
7 months ago
Utils.php
7 months ago
TaskQueueInterface.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AmeliaVendor\GuzzleHttp\Promise; |
| 6 | |
| 7 | interface TaskQueueInterface |
| 8 | { |
| 9 | /** |
| 10 | * Returns true if the queue is empty. |
| 11 | */ |
| 12 | public function isEmpty(): bool; |
| 13 | |
| 14 | /** |
| 15 | * Adds a task to the queue that will be executed the next time run is |
| 16 | * called. |
| 17 | */ |
| 18 | public function add(callable $task): void; |
| 19 | |
| 20 | /** |
| 21 | * Execute all of the pending task in the queue. |
| 22 | */ |
| 23 | public function run(): void; |
| 24 | } |
| 25 |