Modifier and Type | Method and Description |
---|---|
public boolean | Returns: false if the task could not be cancelled,
typically because it has already completed normally;
true otherwisetrue if an attempt to stop the
task should be made even if the task has already started; otherwise,
in-progress tasks are allowed to complete.Attempts to cancel execution of a task. |
cancel | back to summary |
---|---|
public boolean cancel(boolean mayInterruptIfRunning) Attempts to cancel execution of a task. This attempt may not succeed if the task has already completed, has already been cancelled, or could not be cancelled for some other reason.
|