cpython/Misc/NEWS.d/next/Library/2018-05-24-09-15-52.bpo-332...

5 lines
207 B
ReStructuredText

Add ``InvalidStateError`` to :mod:`concurrent.futures`.
``Future.set_result`` and ``Future.set_exception`` now raise
``InvalidStateError`` if the futures are not pending or running. Patch by
Jason Haydaman.