const out = await Promise.allSettled([ Promise.resolve(1), Promise.reject("x"), ]); console.log(out.map(r => r.status));