CompletableFuture.completeAsync

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

@param supplier a function returning the value to be used to complete this CompletableFuture @return this CompletableFuture

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

Meta