Created
January 24, 2019 15:15
-
-
Save indongyoo/fe4f7a5ecc3753a63524032deae5b533 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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