AggregateException.php
1 week ago
CancellationException.php
1 week ago
Coroutine.php
1 week ago
Create.php
1 week ago
Each.php
1 week ago
EachPromise.php
1 week ago
FulfilledPromise.php
1 week ago
Is.php
1 week ago
Promise.php
1 week ago
PromiseInterface.php
1 week ago
PromisorInterface.php
1 week ago
RejectedPromise.php
1 week ago
RejectionException.php
1 week ago
TaskQueue.php
1 week ago
TaskQueueInterface.php
1 week ago
Utils.php
1 week ago
TaskQueueInterface.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace 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 |