true if the task was successfully marked for cancellation.TaskHandle.cancel
bool cancel() @safeRequest cancellation of the task.
The task will be marked for cancellation and will not be resumed. Note that a running task cannot be interrupted mid-execution.