Skip to content

Instantly share code, notes, and snippets.

@jasmine-k
Last active Mar 26, 2018
Embed
What would you like to do?
thenApply
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