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

fix: use unref() to allow graceful shutdown #26

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

KATT
Copy link
Contributor

@KATT KATT commented Mar 18, 2024

Closes #23 but an explicit stop would still be nice along side this

When called, the active Timeout object will not require the Node.js event loop to remain active. If there is no other activity keeping the event loop running, the process may exit before the Timeout object's callback is invoked. Calling timeout.unref() multiple times will have no effect.

https://nodejs.org/api/timers.html#timeoutunref

@huytool157 huytool157 merged commit e122a52 into tryretool:main Mar 19, 2024
2 checks passed
@KATT KATT deleted the feat/unref branch May 27, 2024 10:37
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.

Ability to stop listening in JS SDK
2 participants