Skip to content

Commit

Permalink
Add ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl committed Mar 11, 2024
1 parent 870345b commit 64b5414
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Future.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export class __Future<A> {
// 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());
Expand Down

0 comments on commit 64b5414

Please sign in to comment.