Create a promise that resolves after a certain amount of time
import delay from 'simple-delay'
delay(5000).then(() => console.log('5 seconds have passed'))
setTimeout
import { callSetTimeout } from 'simple-delay'
const mySetTimeout = setTimeout
callSetTimeout(mySetTimeout, 5000).then(() => console.log('5 seconds have passed'))
Generated using TypeDoc