News for hackers. Stuff that matters.
Re:Mistakes we make using JavaScript Promises by ng12 on Friday July 05, 2019 @12:23AM (#20359826)
For the first I wonder if we could solve this with array syntax:

   const [foo, bar] = await [async1(), async2()]
Re:Mistakes we make using JavaScript Promises by simplify on Friday July 05, 2019 @01:23AM (#20360038)
Yes, the correct syntax is:

    const [foo, bar] = await Promise.all([async1(), async2()])
Re:Mistakes we make using JavaScript Promises by ailideex on Friday July 05, 2019 @12:45AM (#20359907)
You can use await on the promise returned by Promise.all()