PyDocs

Nav

Networking and Interprocess Communication

Future.add_done_callback

asyncio

method of Futurenot WASI
  • Future.add_done_callback(callback, *, context=None)
Add a callback to be run when the future becomes done.

The callback is called with a single argument - the future object.
If the future is already done when this is called, the callback is
scheduled with call_soon.
Changed in 3.7
  • 3.7: The context keyword-only parameter was added. See PEP 567 for more details.
0 Examples
No examples for asyncio/Future.add_done_callback.
See Also
No see-alsos for asyncio/Future.add_done_callback
0 Notes
No notes for Future.add_done_callback