Resolve all of the fields of an object in parallel
The same object with every field resolved
await resolveObject({ a: Promise.resolve('a'), b: Promise.resolve('b'),}) === { a: 'a', b: 'b' }
await resolveObject({ a: Promise.resolve('a'), b: Promise.reject('b'),}) // throws error
settleObject if you don't want to fail if some promises reject
An object where every field is a promise
Generated using TypeDoc
Resolve all of the fields of an object in parallel
Returns
The same object with every field resolved
Example
Example
See
settleObject if you don't want to fail if some promises reject