Skip to content

REVO / API version 0.0.10

wait

wait(delay?): Promise<void>

Resolves on a later frame once the delay has elapsed. Delay handling matches setTimeout. Pending waits are abandoned when the script stops.

Parameter Type Description
delay? number Delay in milliseconds. Default: 0 (next frame).

Promise<void>