RuntimeHandle.cancel

RuntimeHandle.cancel(future)[source]

Cancel all tasks associated with future.

This is asynchronous and non-pre-emptive. The cancel will return immediately, the future it represents will become dead, and at some point in the future, all tasks and data associated with the cancelled one will be removed from the system.