Hacker News new | ask | show | jobs
by xntrk 2498 days ago
My understanding was that each await would "block" (creates a new function in a then block that will get execed once the promise resolves). if you wanted to run the two in parallel you would have to Promise.all([promise1, promise2]).then(fn)