source: vendor/guzzlehttp/promises/src/TaskQueueInterface.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 450 bytes
RevLine 
[e3d4e0a]1<?php
2
3declare(strict_types=1);
4
5namespace GuzzleHttp\Promise;
6
7interface 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}
Note: See TracBrowser for help on using the repository browser.