diff --git a/doc/api/timers.md b/doc/api/timers.md index c573d2afdb9e21..838817a2cd4cce 100644 --- a/doc/api/timers.md +++ b/doc/api/timers.md @@ -23,6 +23,16 @@ 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} + +Used to check whether the `Immediate` object will keep the Node.js event loop +active. + ### immediate.ref() + +* Returns: {boolean} + +Used to check whether the `Timeout` object will keep the Node.js event loop +active. + ### timeout.ref()