@apiproxy_stub.Synchronized
  def pop_first_message(self, token):
    if self.has_channel_messages(token):
      client_id = self.client_id_from_token(token)
      self._log('Popping first message of queue for channel (%s)', token)
      return self._connected_channel_messages[client_id].pop(0)

    return None
Returns and clears the first message from the message queue.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/channel/channel_service_stub.py/ChannelServiceStub.pop_first_message