Timeout
Defined in: server/api.d.ts:7561
Node.js timer handle returned by setTimeout and setInterval.
Methods
Section titled “Methods”hasRef()
Section titled “hasRef()”hasRef():
boolean
Defined in: server/api.d.ts:7577
Whether this timer keeps the event loop alive.
Returns
Section titled “Returns”boolean
ref():
Timeout
Defined in: server/api.d.ts:7566
Keeps the event loop alive while this timer is pending.
Returns
Section titled “Returns”Timeout
This timer.
refresh()
Section titled “refresh()”refresh():
Timeout
Defined in: server/api.d.ts:7583
Restarts this timer’s countdown from now, with its original delay.
Returns
Section titled “Returns”Timeout
This timer.
unref()
Section titled “unref()”unref():
Timeout
Defined in: server/api.d.ts:7572
Lets the event loop exit while this timer is still pending.
Returns
Section titled “Returns”Timeout
This timer.