Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .close method on Resource #12

Open
coreybutler opened this issue Oct 27, 2022 · 0 comments
Open

Add .close method on Resource #12

coreybutler opened this issue Oct 27, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@coreybutler
Copy link
Member

The Resource class contains an internal setTimeout/setInterval to monitor access tokens/emit events prior to expiration. This prevents instances of this class from closing. In unit test environments (like tappedout), this prevents tests from closing. A method to close the resource or stop monitoring would allow unit testers to resolve this edge case by calling Resource.close().

@coreybutler coreybutler added the enhancement New feature or request label Oct 27, 2022
@coreybutler coreybutler self-assigned this Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant