Skip to content

Instantly share code, notes, and snippets.

@indongyoo
Created January 24, 2019 15:15
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 indongyoo/fe4f7a5ecc3753a63524032deae5b533 to your computer and use it in GitHub Desktop.
Save indongyoo/fe4f7a5ecc3753a63524032deae5b533 to your computer and use it in GitHub Desktop.
// series
const posts = await getPosts();
const users = await getUsers();
// concurrency
const [posts, users] = await Promise.all([
getPosts(),
getUsers()
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment