A TypeScript library providing enhanced timeout functions compatible with async/await patterns.
Go to file
2018-07-06 14:20:56 +02:00
test BREAKING CHANGE(switch scope): update 2018-07-06 14:20:56 +02:00
ts BREAKING CHANGE(switch scope): update 2018-07-06 14:20:56 +02:00
.gitignore add implementation 2017-01-16 14:54:08 +01:00
.gitlab-ci.yml BREAKING CHANGE(switch scope): update 2018-07-06 14:20:56 +02:00
npmextra.json update ci 2017-10-09 11:26:37 +02:00
package-lock.json 2.0.0 2018-07-06 14:20:56 +02:00
package.json 2.0.0 2018-07-06 14:20:56 +02:00
README.md BREAKING CHANGE(switch scope): update 2018-07-06 14:20:56 +02:00
tslint.json initial 2017-01-15 22:56:29 +01:00

@pushrocks/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