(self)
Check the channel's message queue. If non-empty and joined,
        sends all messages.
Check the channel's message queue. If non-empty and joined,
        sends all messages.
Check the channel s message queue . If non - empty and joined sends all messages .
def _check_message_queue(self):
        """
        Check the channel's message queue. If non-empty and joined,
        sends all messages.
        """
        # wait for a message
        message = self._message_queue.get()
        self.join()
        # there is a message, but the channel might not
        # be joined yet (this will not block if we are already in the channel)
        self._joined.wait()
        # send the message
        message[0](*message[1:])

        gevent.spawn_later(self.message_min_delay, self._check_message_queue)
def _check_message_queue ( self ) : # wait for a message message = self . _message_queue . get ( ) self . join ( ) # there is a message, but the channel might not # be joined yet (this will not block if we are already in the channel) self . _joined . wait ( ) # send the message message [ 0 ] ( * message [ 1 : ] ) gevent . spawn_later ( self . message_min_delay , self . _check_message_queue )