PyDocs

Nav

Networking and Interprocess Communication

Future.cancel

asyncio

method of Futurenot WASI
  • Future.cancel(msg=None)
Cancel the future and schedule callbacks.

If the future is already done or cancelled, return False.
Otherwise, change the future's state to cancelled, schedule the
callbacks and return True.
Changed in 3.9
  • 3.9: Added the msg parameter.
0 Examples
No examples for asyncio/Future.cancel.
See Also
No see-alsos for asyncio/Future.cancel
0 Notes
No notes for Future.cancel