Medusa\Queue\PersistentQueue::peek PHP Method

peek() public method

public peek ( )
    public function peek()
    {
        try {
            return $this->forwards->peek();
        } catch (\RuntimeException $e) {
            throw new \RuntimeException("Can't peek empty queue");
        }
    }