mirror of
https://github.com/python/cpython.git
synced 2025-10-24 07:26:11 +00:00
Future.set_result and Future.set_exception now raise InvalidStateError if the futures are not pending or running. This mirrors the behavior of asyncio.Future, and prevents AssertionErrors in asyncio.wrap_future when set_result is called multiple times. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _base.py | ||
| process.py | ||
| thread.py | ||