Skip to content

Wait

@wuespace/telestion / utils / wait

wait(timeout): Promise<void>

Waits for the specified amount of time before resolving the returned promise.

Parameters

timeout: number

The duration in milliseconds to wait before resolving.

Returns

Promise<void>

A promise that resolves after the specified time has elapsed.