Skip to content

sleep

Asynchronously wait for time to pass

73 bytes

Usage

The _.sleep function allows you to delay in milliseconds.

import * as _ from 'radashi'
await _.sleep(2000) // => waits 2 seconds