Appearance
aninest root / sleep / sleep
function sleep(seconds): Promise<void>
Sleep for a given number of seconds, supporting await syntax.
• seconds: number
number
Promise<void>
Promise
void
await sleep(1) // sleep for 1 second
Utils/sleep.ts:9