wait-p

1.0.0 • Public • Published

wait-p Build Status

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

Package Sidebar

Install

npm i wait-p

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • radiovisual