code: public function receiveMessage()
      {
          if (count($this->unreceivedMessages)) {
              return array_shift($this->unreceivedMessages);
          }
  
          return $this->channel->receiveMessage();
      }
docs: {@inheritdoc}