code: def next_message(self):
          
          msg = self._session.next_message()
          if msg:
              return walk(self._from_nvim, msg)
docs: 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.