src/Connector/BeanstalkdConnector.php
protected function doClear($queue, $state)
    {
        try {
            while ($item = $this->pheanstalk->{'peek'.$state}($queue)) {
                $this->pheanstalk->delete($item);
            }
        } catch (ServerException $e) {
        }

        return true;
    }
protected function doClear($queue, $state)
    {
        try {
            while ($item = $this->pheanstalk->{'peek'.$state}($queue)) {
                $this->pheanstalk->delete($item);
            }
        } catch (ServerException $e) {
        }

        return true;
    }
protected function doClear ( $ queue , $ state ) { try { while ( $ item = $ this -> pheanstalk -> { 'peek' . $ state } ( $ queue ) ) { $ this -> pheanstalk -> delete ( $ item ) ; } } catch ( ServerException $ e ) { } return true ; }
Clears a specific state

@param string $queue
@param string $state

@return boolean

@codeCoverageIgnore
Clears a specific state