promise allsettled Promise.allSettled waits for all promises regardless of rejection. const results = await Promise.allSettled([p1, p2, p3]) Learned on 2025-04-16