From 5eed3baa5cf3391c31d8e699a01e08fc82e1fb73 Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Mon, 18 Mar 2024 08:53:17 -0400 Subject: [PATCH] fix: shift promise in `PromiseGroup` even when rejected --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 41312d3b..9ee44736 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -768,10 +768,10 @@ export class PromiseGroup implements PromiseLike { while (this.promises.length > 0) { try { await this.promises[0] - this.promises.shift() } catch (error) { this.onError(error) } + this.promises.shift() } this.root = null }