diff --git a/src/Future.ts b/src/Future.ts index 5e2688d..1270649 100644 --- a/src/Future.ts +++ b/src/Future.ts @@ -143,6 +143,7 @@ export class __Future { // We have to set the future as cancelled first to avoid an infinite loop this._state = { tag: "Cancelled" }; if (cancel != undefined) { + // @ts-ignore Compiler doesn't like that `cancel` is potentially `void` cancel(); } cancelCallbacks?.forEach((func) => func());