Created
June 11, 2017 15:24
-
-
Save patarkf/b6f2de2839c5807a062c1dd1df2ba43e 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
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