Skip to content

Instantly share code, notes, and snippets.

David limkys gotenxds

  • none
  • Israel
Block or report user

Report or block gotenxds

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 8.js
async function rainSomeCatsAndDogs() {
const [dogs, cats] = await Promise.all([getDogs(), getCats()]);
 
await makeItRain(cats, dogs);
openAnimalProffUmbrella();
}
View 7.js
async function rainSomeCatsAndDogs() {
const [dogs, cats] = await Promise.all([getDogs(), getCats()]);
 
await makeItRain(cats, dogs);
await openAnimalProffUmbrella();
}
View 6.js
async function rainSomeCatsAndDogs() {
  const dogsPromise = getDogs();
  const catsPromise = getCats();
  const [dogs, cats] = [await dogsPromise, await catsPromise];
 
await makeItRain(cats, dogs);
  await openAnimalProffUmbrella();
}
View 5.js
async function rainSomeCatsAndDogs() {
  const [dogs, cats] = await Promise.all([getDogs(), getCats()]);
 
  await makeItRain(cats, dogs);
  await openAnimalProffUmbrella();
}
View 4.js
async function rainSomeCatsAndDogs() {
  const dogs = await getDogs();
  const cats = await getCats();
await makeItRain(cats, dogs);
  await openAnimalProffUmbrella();
}
View 3.js
function rainSomeCatsAndDogs(){
  return Promise.all([getDogs(), getCats()])
.then([dogs, cats] => makeItRain(cats, dogs))
  .then(openAnimalProffUmbrella);
}
View 2.js
async function doStuff(){
try {
  return await rainSomeCatsAndDogs();
  } catch(someCatsAndDogs) {
  // do something;
  }
}
View 1.js
async function doStuff(){
try {
const result = await rainSomeCatsAndDogs();
return result();
  } catch(someCatsAndDogs) {
  // do something;
  }
}
View x.js
async function doStuff(){
try {
  return rainSomeCatsAndDogs();
} catch(someCatsAndDogs) {
  // do something;
}
}
View promise1.js
funcation someOperation(){
return Promise.all(getDogs(), getCats())
.then([dogs, cats] => makeItRain(cats, dogs))
.then(openAnimalProffUmbrella);
}
You can’t perform that action at this time.