Skip to content

Commit

Permalink
fix: shift promise in PromiseGroup even when rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Mar 18, 2024
1 parent bdde62b commit 5eed3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Expand Up @@ -768,10 +768,10 @@ export class PromiseGroup implements PromiseLike<void> {
while (this.promises.length > 0) {
try {
await this.promises[0]
this.promises.shift()
} catch (error) {
this.onError(error)
}
this.promises.shift()
}
this.root = null
}
Expand Down

0 comments on commit 5eed3ba

Please sign in to comment.