Staging: this is not the live site, pydocs.org.
Sets the result of the future as being the given exception.
Should only be used by Executor implementations and unit tests.
Changed in 3.8
- 3.8: This method raises concurrent.futures.InvalidStateError if the Future is already done.