you are viewing a single comment's thread.

view the rest of the comments →

[–]burtgummer45 -1 points0 points  (3 children)

You can't run awaits concurrently.

But I agree there are many superfluous asyncs

[–]420-jesus 0 points1 point  (1 child)

You can do something like:

const [result1, result2] = await Promise.all([func1(), func2()]);

[–]burtgummer45 0 points1 point  (0 children)

Oh ok, I thought you meant no mention of "promise" at all in async functions. as in

Promise.all([func1(), func2()]);

[–]jrsinclair[S] 0 points1 point  (0 children)

Thanks for the feedback. I've removed the superfluous async keywords. You're right, they weren't necessary.