Skip to content
slaveofcodePublic

About

Simple NodeJs module for delaying execution

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

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

About

Simple NodeJs module for delaying execution

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages