Skip to content

Instantly share code, notes, and snippets.

@cassiozen
Created November 29, 2018 00:30
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 cassiozen/686c00d52258897e45c7bb79992f2913 to your computer and use it in GitHub Desktop.
Save cassiozen/686c00d52258897e45c7bb79992f2913 to your computer and use it in GitHub Desktop.
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