English
Appearance
Create a promise that resolves after a specified time in milliseconds.
import { delay } from 'rattail' console.log('Start') await delay(1000) console.log('End after 1 second')
time (ms)
number
Promise<void>