cancel

abstract fun cancel(mayInterruptIfRunning: Boolean): Boolean

Cancels the operation.

Return

false if the cancelable was able to be cancelled, otherwise true.

Parameters

mayInterruptIfRunning

true if the thread executing this task should be interrupted; otherwise, in-progress tasks are allowed to complete.


abstract fun cancel(): Boolean

Cancels the operation.

Return

false if the cancelable was able to be cancelled, otherwise true.