2633 |
|
*/ |
2634 |
|
public boolean isCancelled() { |
2635 |
|
Object r; |
2636 |
< |
return ((r = result) != null && |
2637 |
< |
(r instanceof AltResult) && |
2638 |
< |
(((AltResult)r).ex instanceof CancellationException)); |
2636 |
> |
return ((r = result) instanceof AltResult) && |
2637 |
> |
(((AltResult)r).ex instanceof CancellationException); |
2638 |
|
} |
2639 |
|
|
2640 |
|
/** |
2641 |
|
* Forcibly sets or resets the value subsequently returned by |
2642 |
< |
* method get() and related methods, whether or not already |
2643 |
< |
* completed. This method is designed for use only in error |
2644 |
< |
* recovery actions, and even in such situations may result in |
2645 |
< |
* ongoing dependent completions using established versus |
2642 |
> |
* method {@link #get()} and related methods, whether or not |
2643 |
> |
* already completed. This method is designed for use only in |
2644 |
> |
* error recovery actions, and even in such situations may result |
2645 |
> |
* in ongoing dependent completions using established versus |
2646 |
|
* overwritten outcomes. |
2647 |
|
* |
2648 |
|
* @param value the completion value |