Wrapper for promise.allSettled that returns typed errors
Array of promises to settle
const promises = [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3)];const { fulfilled, rejected } = await settleAll<number, SfError>(promises); Copy
const promises = [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3)];const { fulfilled, rejected } = await settleAll<number, SfError>(promises);
Wrapper for promise.allSettled that returns typed errors