def get_msgs(self):
msgs = []<EOL>while True:<EOL><INDENT>try:<EOL><INDENT>msgs.append(self.get_msg(block=False))<EOL><DEDENT>except Empty:<EOL><INDENT>break<EOL><DEDENT><DEDENT>return msgs<EOL>
Get all messages that are currently ready.