Skip to content

Commit

Permalink
style: use .bind(this)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgadelha authored Aug 3, 2023
1 parent 1c30de8 commit 45c84de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/ResourceWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class ResourceWatch<T extends IResource<unknown, unknown, unknown>>
) {}

[Symbol.asyncIterator](signal?: AbortSignal) {
signal?.addEventListener("abort", () => this.close());
signal?.addEventListener("abort", this.close.bind(this));
return this;
}

Expand Down

0 comments on commit 45c84de

Please sign in to comment.