Skip to content

miniproto.event_loop

Explicit optimized asyncio event-loop selection.

  • backend_name — Return the optimized event-loop package selected for this platform.
  • backend — Load and return the optimized backend module when it is available.
  • backend_version — Return the installed optimized backend version, if available.
  • optimized_available — Return whether the platform’s optimized event-loop backend can be loaded.
  • installed — Return whether :func:install last installed a legacy backend policy.
  • install_error — Return the most recent explicit-install or backend-load error, if any.
  • install — Install the backend’s deprecated global policy on Python before 3.16.
  • new_event_loop — Create and register an optimized loop, falling back to asyncio’s loop.
  • run — Run one coroutine with an optimized asyncio.Runner when possible.