Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CompletableFuture name = CompletableFuture.completedFuture("Deepak");
CompletionStage name With CompletionStage = CompletableFuture.completedStage("Deepak");
CompletableFuture failedFuture = failedFuture(new TimeoutException());
System.out.println(failedFuture.join());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment