summaryrefslogtreecommitdiff
path: root/Python/future.c
diff options
context:
space:
mode:
authorjhaydaman <33549221+jhaydaman@users.noreply.github.com>2018-05-30 02:15:06 -0500
committerAndrew Svetlov <andrew.svetlov@gmail.com>2018-05-30 10:15:06 +0300
commit0a28c0d12ee7201de039ced4d815f57f1f8fd48c (patch)
tree9fa72f88b1f3035ea9fe5a4bde10215a432abe30 /Python/future.c
parentbb9474f1fb2fc7c7ed9f826b78262d6a12b5f9e8 (diff)
downloadcpython-git-0a28c0d12ee7201de039ced4d815f57f1f8fd48c.tar.gz
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.
Diffstat (limited to 'Python/future.c')
0 files changed, 0 insertions, 0 deletions