CompletableFuturesupplyAsync
CompletableFuture is a class in the Java standard library (java.util.concurrent) that represents a future result of an asynchronous computation. It can be completed explicitly by the code that produces the result or completed automatically as part of a chain of asynchronous tasks. It also implements the CompletionStage interface, enabling non-blocking composition of asynchronous operations.
Key characteristics include its ability to be completed manually using complete or completeExceptionally, and its support
Factories and coordination mechanisms are part of its API. There are methods to create already-completed futures
Execution is typically performed on an Executor. By default, asynchronous tasks run on the common ForkJoinPool