public function executeAll(...$args)
    {
        if ($this->isEmpty()) {
            return 0;
        }
        $n = 0;
        do {
            $cb = $this->extract();
            if ($cb) {
                $cb(...$args);
                ++$n;
            }
        } while (!$this->isEmpty());
        return $n;
    }
public function executeAll(...$args)
    {
        if ($this->isEmpty()) {
            return 0;
        }
        $n = 0;
        do {
            $cb = $this->extract();
            if ($cb) {
                $cb(...$args);
                ++$n;
            }
        } while (!$this->isEmpty());
        return $n;
    }
public function executeAll ( ... $ args ) { if ( $ this -> isEmpty ( ) ) { return 0 ; } $ n = 0 ; do { $ cb = $ this -> extract ( ) ; if ( $ cb ) { $ cb ( ... $ args ) ; ++ $ n ; } } while ( ! $ this -> isEmpty ( ) ) ; return $ n ; }
Executes all callbacks from the top of queue to bottom with arbitrary arguments
@param  mixed ...$args Arguments
@return integer
Executes all callbacks from the top of queue to bottom with arbitrary arguments