A TypeScript library providing enhanced timeout functions compatible with async/await patterns.
dist | ||
test | ||
ts | ||
.gitignore | ||
.gitlab-ci.yml | ||
npmextra.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
tslint.json | ||
yarn.lock |
smartdelay
timeouts for the async/await era, written in TypeScript
Availabililty
Status for master
Usage
Use TypeScript for best in class instellisense.
import * as smartdelay from 'smartdelay'
(async () => {
await smartdelay.delayFor('3000') // excution will halt here 3 seconds for this function scope BUT NOT BLOCK anything else
console.log()
})()