Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Could that be written

  const task2then3 = async () => task3(await task2());
  const [result1, result3] = await Promise.all([task1(), task2then3()])


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: