@classmethod
    def receive(cls, timeout = -1):
        self = cls.current()
        mailbox = self.mailbox
        while True:
            x = mailbox.popleft(True, timeout)
            yield x
A generator that yields the next pending :class:`Message` in the :attr:`mailbox` of the current task. This
dataset/ETHPy150Open concurrence/concurrence/lib/concurrence/core.py/Tasklet.receive