CompletableFuture

Class 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