1
0
Fork 0
m365-php/vendor/guzzlehttp/promises/src/TaskQueueInterface.php

25 lines
450 B
PHP
Raw Normal View History

2022-05-31 13:08:55 -06:00
<?php
2023-06-14 10:48:59 -06:00
declare(strict_types=1);
2022-05-31 13:08:55 -06:00
namespace GuzzleHttp\Promise;
interface TaskQueueInterface
{
/**
* Returns true if the queue is empty.
*/
2023-06-14 10:48:59 -06:00
public function isEmpty(): bool;
2022-05-31 13:08:55 -06:00
/**
* Adds a task to the queue that will be executed the next time run is
* called.
*/
2023-06-14 10:48:59 -06:00
public function add(callable $task): void;
2022-05-31 13:08:55 -06:00
/**
* Execute all of the pending task in the queue.
*/
2023-06-14 10:48:59 -06:00
public function run(): void;
2022-05-31 13:08:55 -06:00
}