promisewaiter

1.0.0 • Public • Published

promisewaiter

Simple NodeJS async wait function based on promises

Requires

ES 6+

Installation

npm i promisewaiter

How it works

let wait = require('promisewaiter');
wait(500)
.then(() => {
  console.log('Hello world after 500ms!');
});

Package Sidebar

Install

npm i promisewaiter

Weekly Downloads

0

Version

1.0.0

License

WTFPL

Last publish

Collaborators

  • jacmba