cpython/Lib/asyncio
Miss Islington (bot) 41090b7ba0
[3.12] gh-112182: Replace StopIteration with RuntimeError for future (GH-113220) (GH-123033)
When an `StopIteration` raises into `asyncio.Future`, this will cause
a thread to hang. This commit address this by not raising an exception
and silently transforming the `StopIteration` with a `RuntimeError`,
which the caller can reconstruct from `fut.exception().__cause__`
(cherry picked from commit 4826d52338)

Co-authored-by: Jamie Phan <jamie@ordinarylab.dev>
2024-08-15 15:34:53 +00:00
..
__init__.py
__main__.py [3.12] gh-121957: Emit audit events for python -i and python -m asyncio (GH-122117) 2024-07-22 13:41:23 +02:00
base_events.py [3.12] gh-121913: Use str(exc) instead of exc.strerror in asyncio.base_events (GH-122269) (#122279) 2024-07-25 12:15:22 +00:00
base_futures.py
base_subprocess.py
base_tasks.py
constants.py
coroutines.py
events.py
exceptions.py
format_helpers.py
futures.py [3.12] gh-112182: Replace StopIteration with RuntimeError for future (GH-113220) (GH-123033) 2024-08-15 15:34:53 +00:00
locks.py
log.py
mixins.py
proactor_events.py [3.12] gh-113892: Add a extra check to ProactorEventLoop.sock_connect to ensure that the given socket is in non-blocking mode (GH-119519) (#119913) 2024-06-01 16:29:34 +00:00
protocols.py
queues.py
runners.py
selector_events.py
sslproto.py
staggered.py
streams.py
subprocess.py
taskgroups.py
tasks.py [3.12] chore: fix typos (#116345) (#116370) 2024-03-05 18:51:17 +00:00
threads.py
timeouts.py
transports.py
trsock.py
unix_events.py
windows_events.py [3.12] gh-91227: Ignore ERROR_PORT_UNREACHABLE in proactor recvfrom() (GH-32011) (GH-117209) 2024-03-25 12:21:31 +02:00
windows_utils.py