miniproto.event_loop.install
miniproto.event_loop.install
Section titled “miniproto.event_loop.install”install() -> boolInstall the backend’s deprecated global policy on Python before 3.16.
Returns:
bool–Trueafter the selected backend’s legacyinstallhook succeeds;bool–Falseif no backend/hook is available, installation fails, or Pythonbool– 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.