Skip to content

Instantly share code, notes, and snippets.

Last active Mar 26, 2018
What would you like to do?
private static void thenApply() {
CompletableFuture<CompletableFuture<String>> completableFuture =
CompletableFuture.supplyAsync(() -> "Hello")
.thenApply(value -> CompletableFuture.supplyAsync(
() -> value + " Knolders! Its thenApply"));
//Perform operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment