mirror of
https://github.com/python/cpython
synced 2024-09-06 03:23:41 +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. |
||
---|---|---|
.. | ||
futures | ||
__init__.py |