docstr: The input 'event loop'.
docstr_tok: ["The","input","'event","loop","'","."]
code: def run_as_coroutine(self, stdin, callbacks):
      """
      The input 'event loop'.
      """
      # Note: We cannot use "yield from", because this package also
      #       installs on Python 2.
      assert isinstance(callbacks, EventLoopCallbacks)
  
      if self.closed:
          raise Exception("Event loop already closed.")
  
      timeout = AsyncioTimeout(
          INPUT_TIMEOUT, callbacks.input_timeout, self.loop
      )
      self.running = True
  
      try:
          while self.running:
              timeout.reset()
  
              # Get keys
              try:
                  g = iter(
                      self.loop.run_in_executor(
                          None, self._console_input_reader.read
                      )
                  )
                  while True:
                      yield next(g)
              except StopIteration as e:
                  keys = e.args[0]
  
              # Feed keys to input processor.
              for k in keys:
                  callbacks.feed_key(k)
      finally:
          timeout.stop()
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/asyncio_win32.py
imports: from __future__ import unicode_literals
  from .base import EventLoop, INPUT_TIMEOUT
  from ..terminal.win32_input import ConsoleInputReader
  from .callbacks import EventLoopCallbacks
  from .asyncio_base import AsyncioTimeout
  import asyncio
label_desc: Use image node_id 2 for calling the Win32AsyncioEventLoop obj's underlying member method code with example usage: obj.run_as_coroutine(stdin, callbacks) without return types