3 ms·
You should if you await promise1 first: let result1 = await promise1; let result2 = await promise2;
by fathyb 5y ago
You should if you await promise1 first:
let result1 = await promise1;
let result2 = await promise2;
- petilon 5y agoYeah, but the goal is to kick off two async calls in parallel. The order in which you await is unimportant for that goal. If awaiting promise2 first solves the problem then that's the solution!