1474 |
|
} |
1475 |
|
|
1476 |
|
/** |
1477 |
< |
* Returns a new {@code ForkJoinTask} that performs the {@code |
1478 |
< |
* call} method of the given {@code Callable} as its action, and |
1479 |
< |
* returns its result upon {@link #join}, translating any checked |
1480 |
< |
* exceptions encountered into {@code |
1481 |
< |
* RuntimeException}. Additionally, invocations of {@code cancel} |
1482 |
< |
* with {@code mayInterruptIfRunning true} will attempt to |
1483 |
< |
* interrupt the thread performing the task. |
1477 |
> |
* Returns a new {@code ForkJoinTask} that performs the {@code call} |
1478 |
> |
* method of the given {@code Callable} as its action, and returns |
1479 |
> |
* its result upon {@link #join}, translating any checked exceptions |
1480 |
> |
* encountered into {@code RuntimeException}. Additionally, |
1481 |
> |
* invocations of {@code cancel} with {@code mayInterruptIfRunning |
1482 |
> |
* true} will attempt to interrupt the thread performing the task. |
1483 |
|
* |
1484 |
|
* @param callable the callable action |
1485 |
|
* @param <T> the type of the callable's result |