SIGN IN SIGN UP

bpo-33238: Add InvalidStateError to concurrent.futures. (GH-7056)

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.
J
jhaydaman committed
0a28c0d12ee7201de039ced4d815f57f1f8fd48c
Parent: bb9474f
Committed by Andrew Svetlov <andrew.svetlov@gmail.com> on 5/30/2018, 7:15:06 AM