Skip to content

Instantly share code, notes, and snippets.

@ladas-larry
Last active August 10, 2017 21:05
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 ladas-larry/96b09e86b4c17120e1338206c863a6e2 to your computer and use it in GitHub Desktop.
Save ladas-larry/96b09e86b4c17120e1338206c863a6e2 to your computer and use it in GitHub Desktop.
// Async/await parallelism
async function foo() {
const [result1, result2] = await Promise.all([
asyncFunc1(),
asyncFunc2(),
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment