DEP0126:timers.active()
版本历史
| 版本 | 变更 |
|---|---|
| v11.14.0 | 运行时弃用。 |
类型:运行时
\Type: Runtime
以前未记录的 timers.active() 已弃用。请改用公开记录的 timeout.refresh()。如果需要重新引用超时,自 Node.js 10 起可以使用 timeout.ref() 而不会影响性能。
\The previously undocumented timers.active() is deprecated.
Please use the publicly documented timeout.refresh() instead.
If re-referencing the timeout is necessary, timeout.ref() can be used
with no performance impact since Node.js 10.