2 ms·
Yes, but the first pause comes after both requests have been started.
by recursive 6y ago
Yes, but the first pause comes after both requests have been started.
- ajkjk 6y agoAre you sure? It seems incongruous with my mental model, which is that the first `await`, when executed, immediately pauses execution, so the second is only dispatched when the first has resolved.
- recursive 6y agoYes. > the first `await`, when executed, immediately pauses execution Also true, but in my code, the first `await` happens after the second `fetch()` has already begun.
- DangitBobby 6y agoThe second await does not start until the first await resolves the first promise, but that doesn't mean network activity for the second initiated request isn't still happening in the background.