parameters: (self)
docstring: Remove oldest message from the queue and return it.
          If the queue is empty, wait for a message to arrive
          and return it (does not place it in the queue).
docstring_summary: Remove oldest message from the queue and return it.
          If the queue is empty, wait for a message to arrive
          and return it (does not place it in the queue).
docstring_tokens: Remove oldest message from the queue and return it . If the queue is empty wait for a message to arrive and return it ( does not place it in the queue ) .
function: def next_mesg(self):
          """
          Remove oldest message from the queue and return it.
          If the queue is empty, wait for a message to arrive
          and return it (does not place it in the queue).
          """
          if self.queue:
              return self.queue.pop()
          else:
              return self.conn.recv()
function_tokens: def next_mesg ( self ) : if self . queue : return self . queue . pop ( ) else : return self . conn . recv ( )