SelectorEventLoop and ProactorEventLoop classes The Event Loop Implementations section documents the The Server Objects section documents types returned fromĮvent loop methods like loop.create_server() Methods such as loop.call_soon() and loop.call_later() TimerHandle instances which are returned from scheduling The Callback Handles section documents the Handle and The Event Loop Methods section is the reference documentation of This documentation page contains the following sections: Note that the behaviour of get_event_loop(), set_event_loop(),Īnd new_event_loop() functions can be altered by new_event_loop ( ) ¶Ĭreate and return a new event loop object. Set loop as the current event loop for the current OS thread. In some future Python release this will become an error. Deprecated since version 3.12: Deprecation warning is emitted if there is no current event loop.