Skip to content
M2O Scripting APIScripting reference
Global functionServer APIGenerated

setTimeout()

setTimeout(handler, milliseconds?, …args): Timeout

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

Calls a function once after a delay.

(…args) => void

Function to call.

number

Delay before the call.

…unknown[]

Arguments passed to the handler.

Timeout

Handle to pass to the matching clear function.