TypeScript: `Promise.allSettled` for best-effort batches
typescriptpatterns
Don’t fail the whole batch on one rejection.
const res = await Promise.allSettled([fetch('/a'), fetch('/b')]); Don’t fail the whole batch on one rejection.
const res = await Promise.allSettled([fetch('/a'), fetch('/b')]);