调度定时器


【Scheduling timers】

Node.js 中的计时器是一种内部结构,它会在一定时间后调用给定的函数。计时器的函数被调用的时间取决于创建计时器所使用的方法以及 Node.js 事件循环正在进行的其他工作。

【A timer in Node.js is an internal construct that calls a given function after a certain period of time. When a timer's function is called varies depending on which method was used to create the timer and what other work the Node.js event loop is doing.】