function setImmediate

Supported only in the v8 engine. Introduced in Max v9.2.0.

Schedules a callback to run on the next scheduler tick.

export declare function setImmediate(
  callback: (...args: any[]) => void,
  ...args: any[]
): number;
NameTypeDescription
callback(...args: any[]) => voidthe function to run
argsany[]additional arguments forwarded to the callback
Return Valuenumbera numeric timer ID for use with clearImmediate()