698 |
|
* |
699 |
|
* <p>This method may be overridden in subclasses, but if so, must |
700 |
|
* still ensure that these minimal properties hold. In particular, |
701 |
< |
* the cancel method itself must not throw exceptions. |
701 |
> |
* the {@code cancel} method itself must not throw exceptions. |
702 |
|
* |
703 |
|
* <p>This method is designed to be invoked by <em>other</em> |
704 |
|
* tasks. To terminate the current task, you can just return or |
727 |
|
|
728 |
|
/** |
729 |
|
* Returns the exception thrown by the base computation, or a |
730 |
< |
* CancellationException if cancelled, or null if none or if the |
731 |
< |
* method has not yet completed. |
730 |
> |
* {@code CancellationException} if cancelled, or {@code null} if |
731 |
> |
* none or if the method has not yet completed. |
732 |
|
* |
733 |
|
* @return the exception, or {@code null} if none |
734 |
|
*/ |