1.0.2 • Published 6 years ago

delaying v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Delaying

Simple NodeJs module for delaying execution using promise or async-await

Installation

npm i delaying

Example

const delaying = require('delaying');

const yourFunction = async () => {
  console.log('First time message');
  await delaying('3000'); // 3000 milliseconds = 3 secs
  console.log('Second time message');
}

yourFunction();

License

MIT

1.0.2

6 years ago

1.0.1

6 years ago