Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

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