Is there any limit to setTimeout?

前端 未结 2 1572
萌比男神i
萌比男神i 2020-12-06 10:50

Specifically talking about (server side) V8, and assuming I\'m not concerned about accuracy because I can detect and compensate for it, could I literally set up tho

2条回答
  •  不知归路
    2020-12-06 10:57

    I don't know how node operates, but if you create MAXINT+1 timers without letting them run, you risk an integer overflow.

提交回复
热议问题