Skip to content
On this page

delay

Return a Promise to be resolved in the given millisecond.

Example

await delay(1000) // wait 1000ms

Playground

const { delay } = require('rhodash')
await delay(1000) // wait 1000ms