public function executeOne(...$args)
    {
        if ($this->isEmpty()) {
            return false;
        }
        $cb = $this->shift();
        if ($cb) {
            $cb(...$args);
            if ($cb instanceof CallbackWrapper) {
                $cb->cancel();
            }
        }
        return true;
    }
public function executeOne(...$args)
    {
        if ($this->isEmpty()) {
            return false;
        }
        $cb = $this->shift();
        if ($cb) {
            $cb(...$args);
            if ($cb instanceof CallbackWrapper) {
                $cb->cancel();
            }
        }
        return true;
    }
public function executeOne ( ... $ args ) { if ( $ this -> isEmpty ( ) ) { return false ; } $ cb = $ this -> shift ( ) ; if ( $ cb ) { $ cb ( ... $ args ) ; if ( $ cb instanceof CallbackWrapper ) { $ cb -> cancel ( ) ; } } return true ; }
Executes one callback from the top with given arguments
@param  mixed ...$args Arguments
@return boolean
Executes one callback from the top with given arguments