File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
spring-core/src/main/java/org/springframework/util/concurrent Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ public abstract class FutureUtils {
41
41
* @param callable a function that returns the value to be used, or throws
42
42
* an exception
43
43
* @return the new CompletableFuture
44
+ * @see CompletableFuture#supplyAsync(Supplier)
44
45
*/
45
46
public static <T > CompletableFuture <T > callAsync (Callable <T > callable ) {
46
47
Assert .notNull (callable , "Callable must not be null" );
@@ -52,11 +53,12 @@ public static <T> CompletableFuture<T> callAsync(Callable<T> callable) {
52
53
/**
53
54
* Return a new {@code CompletableFuture} that is asynchronously completed
54
55
* 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} .
56
57
* @param callable a function that returns the value to be used, or throws
57
58
* an exception
58
59
* @param executor the executor to use for asynchronous execution
59
60
* @return the new CompletableFuture
61
+ * @see CompletableFuture#supplyAsync(Supplier, Executor)
60
62
*/
61
63
public static <T > CompletableFuture <T > callAsync (Callable <T > callable , Executor executor ) {
62
64
Assert .notNull (callable , "Callable must not be null" );
You can’t perform that action at this time.
0 commit comments