| 1 |
<?php |
| 2 |
|
| 3 |
declare (strict_types=1); |
| 4 |
namespace Dudlewebs\WPMCS\s3\GuzzleHttp\Promise; |
| 5 |
|
| 6 |
interface TaskQueueInterface |
| 7 |
{ |
| 8 |
/** |
| 9 |
* Returns true if the queue is empty. |
| 10 |
*/ |
| 11 |
public function isEmpty() : bool; |
| 12 |
/** |
| 13 |
* Adds a task to the queue that will be executed the next time run is |
| 14 |
* called. |
| 15 |
*/ |
| 16 |
public function add(callable $task) : void; |
| 17 |
/** |
| 18 |
* Execute all of the pending task in the queue. |
| 19 |
*/ |
| 20 |
public function run() : void; |
| 21 |
} |
| 22 |
|