1390 |
|
* |
1391 |
|
* @param supplier a function returning the value to be used |
1392 |
|
* to complete the returned CompletableFuture |
1393 |
+ |
* @param <U> the function's return type |
1394 |
|
* @return the new CompletableFuture |
1395 |
|
*/ |
1396 |
|
public static <U> CompletableFuture<U> supplyAsync(Generator<U> supplier) { |
1409 |
|
* @param supplier a function returning the value to be used |
1410 |
|
* to complete the returned CompletableFuture |
1411 |
|
* @param executor the executor to use for asynchronous execution |
1412 |
+ |
* @param <U> the function's return type |
1413 |
|
* @return the new CompletableFuture |
1414 |
|
*/ |
1415 |
|
public static <U> CompletableFuture<U> supplyAsync(Generator<U> supplier, |
1462 |
|
* the given value. |
1463 |
|
* |
1464 |
|
* @param value the value |
1465 |
+ |
* @param <U> the type of the value |
1466 |
|
* @return the completed CompletableFuture |
1467 |
|
*/ |
1468 |
|
public static <U> CompletableFuture<U> completedFuture(U value) { |