Created
May 4, 2016 18:25
-
-
Save joe-gaudet-hs/a5e6300be40bc0d76c9d411d131ca563 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val eventuallyFoo = ServiceOne.get // can be fired in parallel | |
val eventuallyBar = ServiceTwo.get | |
for { | |
foo <- eventuallyFoo | |
bar <- eventuallyBar | |
baz <- DB.get(foo.id, bar.id) | |
} yield baz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment