From ee3d998c08b43a2efb15d921f592e8fdc433f487 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sat, 27 Mar 2021 21:05:43 +0100 Subject: [PATCH] Resolve with the final value --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 35df517..9a0c512 100644 --- a/src/index.ts +++ b/src/index.ts @@ -55,6 +55,7 @@ export default class AbortablePromise extends Promise { } step_value = await generator.next(); } while (!step_value.done); + resolve(step_value.value); }); this.emitter = emitter; }