Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

Timeout

Defined in: server/api.d.ts:8644

Node.js timer handle returned by setTimeout and setInterval.

hasRef(): boolean

Defined in: server/api.d.ts:8660

Whether this timer keeps the event loop alive.

boolean


ref(): Timeout

Defined in: server/api.d.ts:8649

Keeps the event loop alive while this timer is pending.

Timeout

This timer.


refresh(): Timeout

Defined in: server/api.d.ts:8666

Restarts this timer’s countdown from now, with its original delay.

Timeout

This timer.


unref(): Timeout

Defined in: server/api.d.ts:8655

Lets the event loop exit while this timer is still pending.

Timeout

This timer.