CoreFiles by mySites.guru
TaskQueueInterface.php24 lines, 450 bytes, from Joomla_6.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 6.2.0-beta2
md5
bfeaf36593c129c1cccc31d1162aa8f8
sha1
e56f7b1889e8d9f183c431e925fe0f3aa6986cb4
sha256
af14af31d2425eb82af9bbd76564ac7ae818c28594d6e0fc5b72bef0422351c4
<?php

declare(strict_types=1);

namespace GuzzleHttp\Promise;

interface TaskQueueInterface
{
    /**
     * Returns true if the queue is empty.
     */
    public function isEmpty(): bool;

    /**
     * Adds a task to the queue that will be executed the next time run is
     * called.
     */
    public function add(callable $task): void;

    /**
     * Execute all of the pending task in the queue.
     */
    public function run(): void;
}

The same content is in 97 releases, Joomla 5.3.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.