Skip to content

Instantly share code, notes, and snippets.

@jonjack
Last active September 15, 2017 09:13
Show Gist options
  • Save jonjack/9bdb70d717aafb1adfe2e79c8b6a9905 to your computer and use it in GitHub Desktop.
Save jonjack/9bdb70d717aafb1adfe2e79c8b6a9905 to your computer and use it in GitHub Desktop.
// 3 sequential async calls
for {
aaa <- WS.url("http://aaa.com").get()
bbb <- WS.url("http://bbb.com").get()
ccc <- WS.url("http://ccc.com").get()
} yield {
// Construct th result using aaa, bbb, and ccc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment