diff --git a/doc/api/timers.md b/doc/api/timers.md index c573d2afdb9e21..297a54ba8f0947 100644 --- a/doc/api/timers.md +++ b/doc/api/timers.md @@ -23,6 +23,15 @@ running as long as the immediate is active. The `Immediate` object returned by [`setImmediate()`][] exports both `immediate.ref()` and `immediate.unref()` functions that can be used to control this default behavior. +### immediate.hasRef() + + +* Returns: {boolean} + +If true, the `Immediate` object will keep the Node.js event loop active. + ### immediate.ref() + +* Returns: {boolean} + +If true, the `Timeout` object will keep the Node.js event loop active. + ### timeout.ref()