ID EN
Concurrent Futures

set_result

Python 3.11

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

Syntax

PYTHON
set_result(result)

See Also

Future Executor concurrent.futures.InvalidStateError Future