Skip to content

Add "unref" to timers #3396

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

Merged
merged 6 commits into from
Mar 10, 2025
Merged

Add "unref" to timers #3396

merged 6 commits into from
Mar 10, 2025

Conversation

cesco69
Copy link
Contributor

@cesco69 cesco69 commented Mar 4, 2025

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

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.

@cesco69 cesco69 changed the title Add "unref" to timers chore: add "unref" to timers Mar 4, 2025
@charmander charmander changed the title chore: add "unref" to timers Add "unref" to timers Mar 4, 2025
@brianc
Copy link
Owner

brianc commented Mar 10, 2025

ohh nice thanks!

@brianc brianc merged commit 1876f20 into brianc:master Mar 10, 2025
6 checks passed
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.

2 participants