mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
fd38a2f0ec
asyncio.get_event_loop() now always return either running event loop or the result of get_event_loop_policy().get_event_loop() call. The latter should now raise an RuntimeError if no current event loop was set instead of creating and setting a new event loop. It affects also a number of asyncio functions and constructors which call get_event_loop() implicitly: ensure_future(), shield(), gather(), etc. DeprecationWarning is no longer emitted if there is no running event loop but the current event loop was set. Co-authored-by: Łukasz Langa <lukasz@langa.pl> |
||
---|---|---|
.. | ||
__init__.py | ||
__main__.py | ||
base_events.py | ||
base_futures.py | ||
base_subprocess.py | ||
base_tasks.py | ||
constants.py | ||
coroutines.py | ||
events.py | ||
exceptions.py | ||
format_helpers.py | ||
futures.py | ||
locks.py | ||
log.py | ||
mixins.py | ||
proactor_events.py | ||
protocols.py | ||
queues.py | ||
runners.py | ||
selector_events.py | ||
sslproto.py | ||
staggered.py | ||
streams.py | ||
subprocess.py | ||
taskgroups.py | ||
tasks.py | ||
threads.py | ||
timeouts.py | ||
transports.py | ||
trsock.py | ||
unix_events.py | ||
windows_events.py | ||
windows_utils.py |