Skip to content

Instantly share code, notes, and snippets.

@laat
Created May 14, 2016 11:24
Show Gist options
  • Save laat/0abe3711a4625da244bf545fc82a607e to your computer and use it in GitHub Desktop.
Save laat/0abe3711a4625da244bf545fc82a607e to your computer and use it in GitHub Desktop.
const combineResults = async () => {
const [a, b, c] = await Promise.all([requestSlowly('a'), requestSlowly('b'), requestSlowly('c')]);
return a + b + c;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment