ID EN
Concurrent Futures

set_exception

Python 3.11

Sets the result of the work associated with the Future to the Exception exception.

Syntax

PYTHON
set_exception(exception)

See Also

Future Exception Executor concurrent.futures.InvalidStateError Future