781 |
|
* unprocessed. |
782 |
|
* |
783 |
|
* @param tasks the collection of tasks |
784 |
+ |
* @param <T> the type of the values returned from the tasks |
785 |
|
* @return the tasks argument, to simplify usage |
786 |
|
* @throws NullPointerException if tasks or any element are null |
787 |
|
*/ |
1444 |
|
* |
1445 |
|
* @param runnable the runnable action |
1446 |
|
* @param result the result upon completion |
1447 |
+ |
* @param <T> the type of the result |
1448 |
|
* @return the task |
1449 |
|
*/ |
1450 |
|
public static <T> ForkJoinTask<T> adapt(Runnable runnable, T result) { |
1458 |
|
* encountered into {@code RuntimeException}. |
1459 |
|
* |
1460 |
|
* @param callable the callable action |
1461 |
+ |
* @param <T> the type of the callable's result |
1462 |
|
* @return the task |
1463 |
|
*/ |
1464 |
|
public static <T> ForkJoinTask<T> adapt(Callable<? extends T> callable) { |