fix(workflows-sdk): name for when/then step (#10459)
This commit is contained in:
committed by
GitHub
parent
7ff3f15d6d
commit
90ae187e09
@@ -20,6 +20,10 @@ export async function promiseAll<T extends readonly unknown[] | []>(
|
||||
promises: T,
|
||||
{ aggregateErrors } = { aggregateErrors: false }
|
||||
): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }> {
|
||||
if (!promises.length) {
|
||||
return [] as unknown as Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>
|
||||
}
|
||||
|
||||
const states = await Promise.allSettled(promises)
|
||||
|
||||
const rejected = (states as PromiseSettledResult<unknown>[]).filter(
|
||||
|
||||
Reference in New Issue
Block a user