sleep
Asynchronously wait for time to pass
73 bytes
since v12.1.0
Usage
The _.sleep function allows you to delay in milliseconds.
import * as import _
_ from 'radashi'
await import _
_.function sleep(milliseconds: number): Promise<void>
Create a promise that resolves after a given amount of time.
sleep(2000) // => waits 2 seconds