Skip to content

miniproto.event_loop.new_event_loop

new_event_loop() -> asyncio.AbstractEventLoop

Create and register an optimized loop, falling back to asyncio’s loop.

Returns:

Raises:

  • Exception – Propagates a selected backend import failure other than a missing package.
Notes

Callers own the returned loop’s lifecycle. Use it as an asyncio.Runner factory or close it after standalone use.