PyDocs

Nav

Networking and Interprocess Communication

Task.add_done_callback

asyncio

method of Tasknot WASI
  • Task.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.
0 Examples
No examples for asyncio/Task.add_done_callback.
See Also
No see-alsos for asyncio/Task.add_done_callback
0 Notes
No notes for Task.add_done_callback