Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
1441 ariadna 3
declare(strict_types=1);
4
 
1 efrain 5
namespace GuzzleHttp\Promise;
6
 
7
interface TaskQueueInterface
8
{
9
    /**
10
     * Returns true if the queue is empty.
11
     */
1441 ariadna 12
    public function isEmpty(): bool;
1 efrain 13
 
14
    /**
15
     * Adds a task to the queue that will be executed the next time run is
16
     * called.
17
     */
1441 ariadna 18
    public function add(callable $task): void;
1 efrain 19
 
20
    /**
21
     * Execute all of the pending task in the queue.
22
     */
1441 ariadna 23
    public function run(): void;
1 efrain 24
}