class_docstr: File-like object, which prints everything written to it, output above the
  current application/prompt. This class is compatible with other file
  objects and can be used as a drop-in replacement for `sys.stdout` or can
  for instance be passed to `logging.StreamHandler`.
  
  The current application, above which we print, is determined by looking
  what application currently runs in the `AppSession` that is active during
  the creation of this instance.
  
  This class can be used as a context manager.
  
  In order to avoid having to repaint the prompt continuously for every
  little write, a short delay of `sleep_between_writes` seconds will be added
  between writes in order to bundle many smaller writes in a short timespan.
class_docstr_tok: ["File-like","object",",","which","prints","everything","written","to","it",",","output","above","the","current","application\/prompt",".","This","class","is","compatible","with","other","file","objects","and","can","be","used","as","a","drop-in","replacement","for","`","sys.stdout","`","or","can","for","instance","be","passed","to","`","logging.StreamHandler","`",".","The","current","application",",","above","which","we","print",",","is","determined","by","looking","what","application","currently","runs","in","the","`","AppSession","`","that","is","active","during","the","creation","of","this","instance",".","This","class","can","be","used","as","a","context","manager",".","In","order","to","avoid","having","to","repaint","the","prompt","continuously","for","every","little","write",",","a","short","delay","of","`","sleep_between_writes","`","seconds","will","be","added","between","writes","in","order","to","bundle","many","smaller","writes","in","a","short","timespan","."]
docstr: Return the event loop for the application currently running in our
  `AppSession`.
docstr_tok: ["Return","the","event","loop","for","the","application","currently","running","in","our","`","AppSession","`","."]
code: def _get_app_loop(self) -> asyncio.AbstractEventLoop | None:
      """
      Return the event loop for the application currently running in our
      `AppSession`.
      """
      app = self.app_session.app
  
      if app is None:
          return None
  
      return app.loop
  
imports: from __future__ import annotations
  import asyncio
  import queue
  import sys
  import threading
  import time
  from contextlib import contextmanager
  from typing import Generator, TextIO, cast
  from .application import get_app_session, run_in_terminal
  from .output import Output
label_desc: Use image node_id 7 for calling the StdoutProxy obj's underlying member method code with example usage: obj._get_app_loop() and returns: app, None