Skip to content

Instantly share code, notes, and snippets.

@beschauer
Created August 2, 2013 11:57
Show Gist options
  • Save beschauer/6139345 to your computer and use it in GitHub Desktop.
Save beschauer/6139345 to your computer and use it in GitHub Desktop.
for {
entity1 <- someService.callReturnsFuture
entity2 <- someService.callReturnsAnotherFuture
if accessAllowed(entity1)
flag = helperToProduceFlag(entity2)
} yield process(entity1, entity2, flag)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment