Created
April 27, 2020 15:03
-
-
Save deepakmehra10/5e48b8c02eb6ab62e9960cc64a03ca33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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