Skip to content

Instantly share code, notes, and snippets.

@gszeliga
Last active December 9, 2015 22:29
Show Gist options
  • Save gszeliga/d4637bd7ba5ac7fd3838 to your computer and use it in GitHub Desktop.
Save gszeliga/d4637bd7ba5ac7fd3838 to your computer and use it in GitHub Desktop.
CompletableFuture<Outcome<String>> textf =
completedFuture(maybe("And the number is %s!"));
CompletableFuture<Outcome<Integer>> numberf =
completedFuture(maybe(22));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment