Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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