PyDocs

Nav

Concurrent Execution

Future

concurrent.futures

class (source) not WASI
Represents the result of an asynchronous computation.
Members of Future

a

add_done_callback
Attaches a callable that will be called when the future finishes.

c

cancel
Cancel the future if possible.
cancelled
Return True if the future was cancelled.

d

done
Return True if the future was cancelled or finished executing.

e

exception
Return the exception raised by the call that the future represents.

r

result
Return the result of the call that the future represents.
running
Return True if the future is currently executing.

s

set_exception
Sets the result of the future as being the given exception.
set_result
Sets the return value of work associated with the future.
set_running_or_notify_cancel
Mark the future as running or process any cancel notifications.
0 Examples
No examples for concurrent.futures/Future.
See Also
No see-alsos for concurrent.futures/Future
0 Notes
No notes for Future