wait
function wait(ms: number): Promise<void>
Wait for a specific amount of time (timeout)
Parameters
Parameter | Type | Description |
---|---|---|
ms | number | Time to wait in milliseconds |
Returns
Promise
<void
>
A promise that resolves in x seconds
function wait(ms: number): Promise<void>
Wait for a specific amount of time (timeout)
Parameter | Type | Description |
---|---|---|
ms | number | Time to wait in milliseconds |
Promise
<void
>
A promise that resolves in x seconds