PluginProbe
Packeta / 1.6.1
Packeta v1.6.1
2.3.2 2.3.1 trunk 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.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / deps / guzzlehttp / promises / src / TaskQueueInterface.php

TaskQueueInterface.php in Packeta 1.6.1, at deps/guzzlehttp/promises/src/TaskQueueInterface.php

23 lines 441 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Packetery\GuzzleHttp\Promise;
4
5 interface TaskQueueInterface
6 {
7 /**
8 * Returns true if the queue is empty.
9 *
10 * @return bool
11 */
12 public function isEmpty();
13 /**
14 * Adds a task to the queue that will be executed the next time run is
15 * called.
16 */
17 public function add(callable $task);
18 /**
19 * Execute all of the pending task in the queue.
20 */
21 public function run();
22 }
23