Created
March 26, 2018 11:47
-
-
Save jasmine-k/409853a7ec2c3938e393d9751ea4981a 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
private static void thenAcceptBoth() { | |
CompletableFuture<Void> completableFuture = CompletableFuture.supplyAsync(() -> "Hello") | |
.thenAcceptBoth(CompletableFuture.supplyAsync(() -> " Knolders! Its thenAcceptBoth"), | |
(value1, value2) -> System.out.println(value1 + value2)); // Hello Knolders! Its thenAcceptBoth | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment