Skip to content

Instantly share code, notes, and snippets.

Created February 28, 2016 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/89f6c2093204bc82c40a to your computer and use it in GitHub Desktop.
Save anonymous/89f6c2093204bc82c40a to your computer and use it in GitHub Desktop.
getValue("aoeu").thenAccept(prof -> prof.getName()) // Successful completion
.exceptionally(thr -> { // Failed completion
thr.printStackTrace();
return null;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment