Skip to content

Instantly share code, notes, and snippets.

@jklingsporn
Created November 16, 2017 18:54
Show Gist options
  • Save jklingsporn/278c5e248ccc1a6d8483703b8c69cc0e to your computer and use it in GitHub Desktop.
Save jklingsporn/278c5e248ccc1a6d8483703b8c69cc0e to your computer and use it in GitHub Desktop.
How to use CompletableFutureCollector
public static void main(String[] args) {
CompletableFuture<List<Integer>> collect = Stream.of(1,2,3).map(CompletableFuture::completedFuture).collect(CompletableFutureCollector.allOf());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment