1.0.2 • Published 6 years ago
delaying v1.0.2
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