SIGN IN SIGN UP

gh-112182: Replace StopIteration with RuntimeError for future (#113220)

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__`
J
Jamie Phan committed
4826d52338396758b2d6790a498c2a06eec19a86
Parent: 5d8a3e7
Committed by GitHub <noreply@github.com> on 1/10/2024, 5:21:00 AM