def next_message(self):
msg = self._session.next_message()<EOL>if msg:<EOL><INDENT>return walk(self._from_nvim, msg)<EOL><DEDENT>
Block until a message(request or notification) is available.

        If any messages were previously enqueued, return the first in queue.
        If not, run the event loop until one is received.