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– 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.