Skip to content

Commit b38a5df

Browse files
committed
Javadoc
1 parent 2aa74c9 commit b38a5df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-core/src/main/java/org/springframework/util/concurrent/FutureUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public abstract class FutureUtils {
4141
* @param callable a function that returns the value to be used, or throws
4242
* an exception
4343
* @return the new CompletableFuture
44+
* @see CompletableFuture#supplyAsync(Supplier)
4445
*/
4546
public static <T> CompletableFuture<T> callAsync(Callable<T> callable) {
4647
Assert.notNull(callable, "Callable must not be null");
@@ -52,11 +53,12 @@ public static <T> CompletableFuture<T> callAsync(Callable<T> callable) {
5253
/**
5354
* Return a new {@code CompletableFuture} that is asynchronously completed
5455
* by a task running in the given executor with the value obtained
55-
* by calling the given Supplier.
56+
* by calling the given {@code Callable}.
5657
* @param callable a function that returns the value to be used, or throws
5758
* an exception
5859
* @param executor the executor to use for asynchronous execution
5960
* @return the new CompletableFuture
61+
* @see CompletableFuture#supplyAsync(Supplier, Executor)
6062
*/
6163
public static <T> CompletableFuture<T> callAsync(Callable<T> callable, Executor executor) {
6264
Assert.notNull(callable, "Callable must not be null");

0 commit comments

Comments
 (0)