PyDocs

Nav

Concurrent Execution

Future.add_done_callback

concurrent.futures

method of Future (source) not WASI
  • Future.add_done_callback(fn)
Attaches a callable that will be called when the future finishes.

Args:
    fn: A callable that will be called with this future as its only
        argument when the future completes or is cancelled.  The
        callable will always be called by a thread in the same
        process in which it was added.  If the future has already
        completed or been cancelled then the callable will be
        called immediately.  These callables are called in the
        order that they were added.
0 Examples
No examples for concurrent.futures/Future.add_done_callback.
See Also
No see-alsos for concurrent.futures/Future.add_done_callback
0 Notes
No notes for Future.add_done_callback