Exemple #1
0
 /**
  * @return  \Ackintosh\Snidel\Result\Result
  * @throws  \RuntimeException
  */
 public function dequeue()
 {
     $this->dequeuedCount++;
     try {
         $serialized = $this->receiveMessage();
     } catch (\RuntimeException $e) {
         throw new \RuntimeException('failed to dequeue result');
     }
     return ResultFormatter::unserialize($serialized);
 }