CompletableFuture.completeAsync

Completes this CompletableFuture with the result of the given Supplier function invoked from an asynchronous task using the given executor.

@param supplier a function returning the value to be used to complete this CompletableFuture @param executor the executor to use for asynchronous execution @return this CompletableFuture

  1. CompletableFuture!(T) completeAsync(Supplier!(T) supplier, Executor executor)
    class CompletableFuture(T)
    completeAsync
    (
    Supplier!(T) supplier
    ,)
  2. CompletableFuture!(T) completeAsync(Supplier!(T) supplier)

Meta