Skip to content

Instantly share code, notes, and snippets.

@drawers
Last active August 7, 2017 03:37
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 drawers/4b7685032bb8baf17365b14ed9347530 to your computer and use it in GitHub Desktop.
Save drawers/4b7685032bb8baf17365b14ed9347530 to your computer and use it in GitHub Desktop.
ListenableFuture<Games> retrieveGames(String playerName) {
return FluentFuture.from(playerRepository.retrieve(playerName))
.transformAsync( (player) -> gamesRepository.retrieve(player.id()), directExecutor())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment