Created
November 27, 2017 15:12
-
-
Save babjo/bdacd88134a1979fe3107759418a244b 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
String combined = Stream.of(future1, future2, future3) | |
.map(CompletableFuture::join) | |
.collect(Collectors.joining(" ")); | |
assertEquals("Hello Beautiful World", combined); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment