mirror of https://github.com/python/cpython
6c23635f2b
asyncio.TaskGroup and asyncio.Timeout classes now raise proper RuntimeError if they are improperly used. * When they are used without entering the context manager. * When they are used after finishing. * When the context manager is entered more than once (simultaneously or sequentially). * If there is no current task when entering the context manager. They now remain in a consistent state after an exception is thrown, so subsequent operations can be performed correctly (if they are allowed). Co-authored-by: James Hilton-Balfe <gobot1234yt@gmail.com> |
||
---|---|---|
.. | ||
__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 |