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

unref timeout so grace period does not hold up process exit #3

Merged
merged 1 commit into from
May 21, 2017

Conversation

hunterloftis
Copy link
Owner

Test & implementation to resolve #1

@hunterloftis hunterloftis merged commit 4cce56e into master May 21, 2017
@hunterloftis hunterloftis deleted the min-delay branch May 21, 2017 17:35
glasser added a commit to glasser/stoppable that referenced this pull request Feb 23, 2021
Some environments where you might use stoppable don't implement timer.unref,
such as the "jsdom" browser-compatibility mode of jest.

This uses clearTimeout instead of unref to fix issue hunterloftis#1 in a more compatible way
which still passes the test added in hunterloftis#3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clients can delay shutdown for longer than needed
1 participant