class asyncio.AbstractEventLoopPolicy
Event loop policy.
-
get_event_loop()
-
Get the event loop for the current context.
Returns an event loop object implementing the
AbstractEventLoop
interface.Raises an exception in case no event loop has been set for the current context and the current policy does not specify to create one. It must never return
None
.
-
set_event_loop(loop)
-
Set the event loop for the current context to loop.
-
new_event_loop()
-
Create and return a new event loop object according to this policy’s rules.
If there’s need to set this loop as the event loop for the current context,
set_event_loop()
must be called explicitly.
Please login to continue.