profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

Promise.allSettled

Description

Let every request finish no matter if others fail or not.

Syntax

const promises = [Promise.resolve(1), Promise.reject(2)]
const [result1, result2] = await Promise.allSettled(promises)

Related