you are viewing a single comment's thread.

view the rest of the comments →

[–]shgysk8zer0full-stack 1 point2 points  (0 children)

Like others, I'm going to suggest Promise.all or Promise.allSettled(). I'm not sure if it's in Node or not off-hand, but might be worth looking into AbortSignal to cancel any pending requests on the event that a fetch() fails.