Skip to content

Instantly share code, notes, and snippets.

@gotenxds
Created January 19, 2018 21:03
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 gotenxds/ba3293c585b2a7d323871b304c3e9d0b to your computer and use it in GitHub Desktop.
Save gotenxds/ba3293c585b2a7d323871b304c3e9d0b to your computer and use it in GitHub Desktop.
async function rainSomeCatsAndDogs() {
  const [dogs, cats] = await Promise.all([getDogs(), getCats()]);
 
  await makeItRain(cats, dogs);
  await openAnimalProffUmbrella();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment