Skip to content

Instantly share code, notes, and snippets.

@deepakmehra10
Created April 27, 2020 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deepakmehra10/5e48b8c02eb6ab62e9960cc64a03ca33 to your computer and use it in GitHub Desktop.
Save deepakmehra10/5e48b8c02eb6ab62e9960cc64a03ca33 to your computer and use it in GitHub Desktop.
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