wait-p
v1.0.0
Published
Wait for a specified amount of time, then return a promise.
Downloads
7
Maintainers
Readme
wait-p
Wait for a specified amount of time, then return a promise.
Install
$ npm install --save wait-p
Usage
const wait = require('wait-p');
wait(100).then(() => {
// 100 ms later ...
});
API
waitp(input)
input
Type: number
The amount of milliseconds you want to wait.
License
MIT © Michael Wuergler