Skip to content

miniproto.event_loop.install

install() -> bool

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

Returns:

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

Raises:

  • DeprecationWarning – If the warning filter treats the emitted deprecation warning as an error.
Notes

This call emits a DeprecationWarning. The process-global policy change must not race with loop creation. Prefer :func:run or asyncio.Runner with :func:new_event_loop for a scoped lifecycle.