Skip to content

miniproto.event_loop.backend

backend() -> ModuleType | None

Load and return the optimized backend module when it is available.

Returns:

  • ModuleType | None – The cached import of the platform-selected backend, or None when
  • ModuleType | None – that package is not installed.

Raises:

  • Exception – Propagates an import failure raised inside the backend rather than treating a broken installation as unavailable.