cancel

abstract fun cancel()

Cancels this task, with immediate effect.

If the scheduler is currently executing the task, it will not be rescheduled. It may finish its execution, however this behaviour is implementation-defined.