Created
November 29, 2018 00:30
-
-
Save cassiozen/686c00d52258897e45c7bb79992f2913 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 getStatus() { | |
const currentUserPromise = someApi.fetchUser(); | |
const currentCompanyPromise = someApi.fetchCompany(); | |
return await Promise.all([currentUserPromise, currentCompanyPromise]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment