cancel

open override fun cancel(mayInterruptIfRunning: Boolean): Boolean

Attempts to cancel execution of this task.

Return

true if cancellation was successful (task will not produce a result), false if it was already completed.

Parameters

mayInterruptIfRunning

(ignored in this implementation; tasks are cooperatively cancelled)