@asyncio.coroutine<EOL><INDENT>def get(self, *, no_ack=False):<DEDENT>
if self.deleted:<EOL><INDENT>raise Deleted("<STR_LIT>".format(self.name))<EOL><DEDENT>self.sender.send_BasicGet(self.name, no_ack)<EOL>tag_msg = yield from self.synchroniser.wait(spec.BasicGetOK, spec.BasicGetEmpty)<EOL>if tag_msg is not None:<EOL><INDENT>consumer_tag, msg = tag_msg<EOL>assert consumer_tag is None<EOL><DEDENT>else:<EOL><INDENT>msg = None<EOL><DEDENT>self.reader.ready()<EOL>return msg<EOL>
Synchronously get a message from the queue.

This method is a :ref:`coroutine <coroutine>`.

:keyword bool no_ack: if true, the broker does not require acknowledgement of receipt of the message.

:return: an :class:`~asynqp.message.IncomingMessage`,
    or ``None`` if there were no messages on the queue.