A TypeScript library providing enhanced timeout functions compatible with async/await patterns.
Go to file
2017-01-18 00:44:30 +01:00
dist add implementation 2017-01-16 14:54:08 +01:00
test add implementation 2017-01-16 14:54:08 +01:00
ts add implementation 2017-01-16 14:54:08 +01:00
.gitignore add implementation 2017-01-16 14:54:08 +01:00
.gitlab-ci.yml initial 2017-01-15 22:56:29 +01:00
package.json 1.0.1 2017-01-18 00:44:30 +01:00
README.md add implementation 2017-01-16 14:54:08 +01:00
tslint.json initial 2017-01-15 22:56:29 +01:00

smartdelay

timeouts for the async/await era, written in TypeScript

Availabililty

npm git git docs

Status for master

build status coverage report npm downloads per month Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

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()
})()

npm