2 namespace GuzzleHttp\Promise;
4 interface TaskQueueInterface
7 * Returns true if the queue is empty.
11 public function isEmpty();
14 * Adds a task to the queue that will be executed the next time run is
17 * @param callable $task
19 public function add(callable $task);
22 * Execute all of the pending task in the queue.
24 public function run();