CompletableFuture
Class CompletableFuture<T>
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<T>
- All Implemented Interfaces:
- CompletionStage<T>, Future<T>
public class CompletableFuture<T> extends Object implements Future<T>, CompletionStage<T>
A Future
that may be explicitly completed (setting its value and status), and may be used as a CompletionStage
, supporting dependent functions and actions that trigger upon i