Node.js · Middle · Question 9 of 75

What does timer.unref() do?

Explanation

Normally an active timer keeps the process alive. unref is useful for background tasks like periodic metrics that shouldn't prevent shutdown. ref() undoes it.

Further reading

Problem with a question

Node.js · Middle · question 9

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz