public static < T > CompletableFuture < T > completedFuture ( T result ) { CompletableFuture < T > future = new AtomixFuture <> ( ) ; future . complete ( result ) ; return future ; }
Returns a new completed Atomix future .