Skip to content

Instantly share code, notes, and snippets.

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 patarkf/b6f2de2839c5807a062c1dd1df2ba43e to your computer and use it in GitHub Desktop.
Save patarkf/b6f2de2839c5807a062c1dd1df2ba43e to your computer and use it in GitHub Desktop.
async function getConcurrently() {
let promises = [];
promises.push(getUsers());
promises.push(getCategories());
promises.push(getProducts());
let [users, categories, products] = await Promise.all(promises);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment