Skip to content

sleep

Basic usage

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

import { sleep } from 'radash'
await sleep(2000) // => waits 2 seconds