Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
private static void thenCombine() {
CompletableFuture<String> completableFuture
= CompletableFuture.supplyAsync(() -> "Hello")
() -> " Knolders! Its thenCombine"), (value1, value2) -> value1 + value2);
completableFuture.thenAccept(System.out::println); // Hello Knolders! Its thenCombine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment