Skip to content

Instantly share code, notes, and snippets.

@kovacshuni
Created February 13, 2017 18:02
Show Gist options
  • Save kovacshuni/e82e00019af64d0b3e5015e3b76c75c2 to your computer and use it in GitHub Desktop.
Save kovacshuni/e82e00019af64d0b3e5015e3b76c75c2 to your computer and use it in GitHub Desktop.
Future-vs-CompletionStage

Future -> CompletionStage

  1. map -> thenApply
  2. flatMap -> thenCompose
  3. forEach -> thenAccept
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment