PluginProbe
Plausible Analytics / trunk
Plausible Analytics vtrunk
2.6.1 2.6.0 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 All 52 releases
plausible-analytics / src / Client / lib / Lib / GuzzleHttp / Promise / TaskQueueInterface.php

TaskQueueInterface.php in Plausible Analytics trunk, at src/Client/lib/Lib/GuzzleHttp/Promise/TaskQueueInterface.php

25 lines 484 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Plausible\Analytics\WP\Client\Lib\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