512 |
|
* Attempts to cancel execution of this task. This attempt will |
513 |
|
* fail if the task has already completed, has already been |
514 |
|
* cancelled, or could not be cancelled for some other reason. If |
515 |
< |
* successful, and this task has not started when cancel is |
516 |
< |
* called, execution of this task is suppressed, {@link |
515 |
> |
* successful, and this task has not started when {@code cancel} |
516 |
> |
* is called, execution of this task is suppressed, {@link |
517 |
|
* #isCancelled} will report true, and {@link #join} will result |
518 |
|
* in a {@code CancellationException} being thrown. |
519 |
|
* |
527 |
|
* invoke {@link #completeExceptionally}. |
528 |
|
* |
529 |
|
* @param mayInterruptIfRunning this value is ignored in the |
530 |
< |
* default implementation because tasks are not |
531 |
< |
* cancelled via interruption |
530 |
> |
* default implementation because tasks are not cancelled via |
531 |
> |
* interruption |
532 |
|
* |
533 |
|
* @return {@code true} if this task is now cancelled |
534 |
|
*/ |