SharedWorker.php
public function receiveMessage()
    {
        if (count($this->unreceivedMessages)) {
            return array_shift($this->unreceivedMessages);
        }

        return $this->channel->receiveMessage();
    }
public function receiveMessage()
    {
        if (count($this->unreceivedMessages)) {
            return array_shift($this->unreceivedMessages);
        }

        return $this->channel->receiveMessage();
    }
{@inheritdoc}