How to use await and promise.all

Viewed 54

If the a and b promise functions exist, do the two codes below work the same?

await Promise.all([a(), b()]);

await (a(), b());
0 Answers
Related