delayfor
v1.0.1
Published
Simple async delay that will return when given ms has passed
Downloads
4
Readme
delayfor
Promise that will resolve after X ms
Usage
async function foobar() {
...
await delayfor(250)
...
}
Could also be used as a promise
delayfor(250).then(
() => console.log('resolved!')
)