3 ms·
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 ru
by xntrk 7y 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)