Skip to content

miniproto.event_loop.install

install() -> bool

Install the backend’s deprecated global policy on Python before 3.16.

Returns:

  • boolTrue after the selected backend’s legacy install hook succeeds;
  • boolFalse if no backend/hook is available, installation fails, or Python
  • bool – 3.16+ rejects policy installation.

Raises:

  • DeprecationWarning – Always warns because policy installation is a deprecated asyncio integration path.
Notes

This process-global operation is not safe to race with other tasks that create loops. Prefer :func:run or asyncio.Runner with :func:new_event_loop for scoped lifecycle control.