- Preparing search index...
- The search index is not available
@giraugh/tools
- settleObject<T>(object): Promise<{
[k in string | number | symbol]: PromiseSettledResult<T[k]>
}>
-
Type Parameters
-
T extends Record<PropertyKey, Promise<unknown>>
Returns Promise<{
[k in string | number | symbol]: PromiseSettledResult<T[k]>
}>
Settle all of the fields of an object in parallel
Returns
The same object with every field settled
Example
Example
See
resolveObject if you want to fail on any promise rejection