Mercurial > hg > isophonics-drupal-site
comparison vendor/guzzlehttp/promises/src/TaskQueueInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 namespace GuzzleHttp\Promise; | |
3 | |
4 interface TaskQueueInterface | |
5 { | |
6 /** | |
7 * Returns true if the queue is empty. | |
8 * | |
9 * @return bool | |
10 */ | |
11 public function isEmpty(); | |
12 | |
13 /** | |
14 * Adds a task to the queue that will be executed the next time run is | |
15 * called. | |
16 * | |
17 * @param callable $task | |
18 */ | |
19 public function add(callable $task); | |
20 | |
21 /** | |
22 * Execute all of the pending task in the queue. | |
23 */ | |
24 public function run(); | |
25 } |