cancel

Cancels the operation.

Return

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


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.