Skip to content
M2O Scripting APIScripting reference
Data shapeServer APIGenerated

Timeout

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

Node.js timer handle returned by setTimeout and setInterval.

hasRef(): boolean

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

Whether this timer keeps the event loop alive.

boolean


ref(): Timeout

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

Keeps the event loop alive while this timer is pending.

Timeout

This timer.


refresh(): Timeout

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

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

Timeout

This timer.


unref(): Timeout

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

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

Timeout

This timer.