392 |
|
|
393 |
|
/** |
394 |
|
* Returns result or throws exception using j.u.c.Future conventions. |
395 |
< |
* Only call when {@code isDone} known to be true. |
395 |
> |
* Only call when {@code isDone} known to be true or thread known |
396 |
> |
* to be interrupted. |
397 |
|
*/ |
398 |
|
private V reportFutureResult() |
399 |
|
throws InterruptedException, ExecutionException { |
560 |
|
/** |
561 |
|
* Forks the given tasks, returning when {@code isDone} holds for |
562 |
|
* each task or an (unchecked) exception is encountered, in which |
563 |
< |
* case the exception is rethrown. If more than one task |
564 |
< |
* encounters an exception, then this method throws any one of |
565 |
< |
* these exceptions. The individual status of each task may be |
563 |
> |
* case the exception is rethrown. If either task encounters an |
564 |
> |
* exception, the other one may be, but is not guaranteed to be, |
565 |
> |
* cancelled. If both tasks throw an exception, then this method |
566 |
> |
* throws one of them. The individual status of each task may be |
567 |
|
* checked using {@link #getException()} and related methods. |
568 |
|
* |
569 |
|
* <p>This method may be invoked only from within {@code |