A TypeScript library providing enhanced timeout functions compatible with async/await patterns.
Go to file
2017-06-05 00:33:59 +02:00
dist add cancelable Timeout 2017-06-05 00:32:01 +02:00
test add cancelable Timeout 2017-06-05 00:32:01 +02:00
ts add cancelable Timeout 2017-06-05 00:32:01 +02:00
.gitignore add implementation 2017-01-16 14:54:08 +01:00
.gitlab-ci.yml update ci 2017-06-05 00:33:59 +02:00
npmextra.json update ci 2017-06-05 00:33:59 +02:00
package-lock.json 1.0.2 2017-06-05 00:32:05 +02:00
package.json 1.0.2 2017-06-05 00:32:05 +02:00
README.md add implementation 2017-01-16 14:54:08 +01:00
tslint.json initial 2017-01-15 22:56:29 +01:00
yarn.lock add cancelable Timeout 2017-06-05 00:32:01 +02: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