PyDocs

Nav

Concurrent Execution

Future.set_result

concurrent.futures

method of Future (source) not WASI
  • Future.set_result(result)
Sets the return value of work associated with the future.

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_result.
See Also
No see-alsos for concurrent.futures/Future.set_result
0 Notes
No notes for Future.set_result