commit | 0a28c0d12ee7201de039ced4d815f57f1f8fd48c | [log] [tgz] |
---|---|---|
author | jhaydaman <33549221+jhaydaman@users.noreply.github.com> | Wed May 30 02:15:06 2018 -0500 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Wed May 30 10:15:06 2018 +0300 |
tree | 9fa72f88b1f3035ea9fe5a4bde10215a432abe30 | |
parent | bb9474f1fb2fc7c7ed9f826b78262d6a12b5f9e8 [diff] |
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.