commit | 4826d52338396758b2d6790a498c2a06eec19a86 | [log] [tgz] |
---|---|---|
author | Jamie Phan <jamie@ordinarylab.dev> | Wed Jan 10 16:21:00 2024 +1100 |
committer | GitHub <noreply@github.com> | Tue Jan 09 21:21:00 2024 -0800 |
tree | e1dc94c361fbc8ffb62d108bc8587b7072cd522a | |
parent | 5d8a3e74b51a59752f24cb869e7daa065b673f83 [diff] |
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__`