Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
combinedFuture.thenApply(v ->
Stream.of(completableFuture1, completableFuture2, completableFuture3).
map(CompletableFuture::join).
collect(Collectors.toList()));
String combined = Stream.of(completableFuture1, completableFuture2, completableFuture3)
.map(CompletableFuture::join)
.collect(Collectors.joining(" "));
System.out.println(combined); // Hello Knolders! Its allOf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment