Since 3.10 asyncio.get_event_loop() emits a deprecation warning if used outside of the event loop (see #83710). It is a time to turn a warning into error and make asyncio.get_event_loop() an alias of asyncio.get_running_loop().
But maybe we should first deprecate set_event_loop()? It will be a no-op now.
Linked PRs
Since 3.10
asyncio.get_event_loop()emits a deprecation warning if used outside of the event loop (see #83710). It is a time to turn a warning into error and makeasyncio.get_event_loop()an alias ofasyncio.get_running_loop().But maybe we should first deprecate
set_event_loop()? It will be a no-op now.Linked PRs