timeout-promise-wrapper
v0.1.9
Published
timeout-promise-wrapper is a promise-based implementation of setTimeout
Downloads
80
Maintainers
Readme
timeout-promise-wrapper
A simple timeout library for nodejs. It gives an promise based alternative to setTimeout and clearTimeout.
Installation
npm install timeout-promise-wrapper
Usage
const timeout = require("timeout-promise-wrapper");
await timeout(100); // waits 100ms