miniproto.event_loop.new_event_loop
miniproto.event_loop.new_event_loop
Section titled “miniproto.event_loop.new_event_loop”new_event_loop() -> asyncio.AbstractEventLoopCreate and register an optimized loop, falling back to asyncio’s loop.
Returns:
AbstractEventLoop– A newly created event loop, also made current withAbstractEventLoop– func:asyncio.set_event_loopfor the calling thread.
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.