Skip to content

sleep
73 bytes

Asynchronously wait for time to pass

Usage

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

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