PyDocs

Nav

Concurrent Execution

Future.set_exception

concurrent.futures

method of Future (source) not WASI
  • Future.set_exception(exception)
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.
0 Examples
No examples for concurrent.futures/Future.set_exception.
See Also
No see-alsos for concurrent.futures/Future.set_exception
0 Notes
No notes for Future.set_exception