PHPDaemon\Structures\PriorityQueueCallbacks::executeOne PHP Method

executeOne() public method

Executes one callback from the top of queue with arbitrary arguments
public executeOne ( $args ) : boolean
$args Arguments
return boolean
    public function executeOne(...$args)
    {
        if ($this->isEmpty()) {
            return false;
        }
        $cb = $this->extract();
        if ($cb) {
            $cb(...$args);
        }
        return true;
    }