DEP0127: timers._unrefActive()


类型: 运行时

以前未记录和私有的 timers._unrefActive() 已弃用。 请改用公开记录的 timeout.refresh()。 如果需要取消引用超时,则可以使用 timeout.unref(),从 Node.js 10 开始不会影响性能。

Type: Runtime

The previously undocumented and "private" timers._unrefActive() is deprecated. Please use the publicly documented timeout.refresh() instead. If unreferencing the timeout is necessary, timeout.unref() can be used with no performance impact since Node.js 10.