Skip to content

Function: wait()

ts
function wait(timeToWait?: Nillable<number>): void;

Lock script execution based on real time.

Parameters

ParameterTypeDefault valueDescription
timeToWaitNillable<number>nullReal-time duration to wait, or null to yield once.

Returns

void