Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slaveofcode/delaytime
Simple NodeJs module for delaying execution
https://github.com/slaveofcode/delaytime
delay delay-promise promise timeout waiting
Last synced: 3 days ago
JSON representation
Simple NodeJs module for delaying execution
- Host: GitHub
- URL: https://github.com/slaveofcode/delaytime
- Owner: slaveofcode
- License: mit
- Created: 2018-08-09T03:57:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-09T04:19:35.000Z (over 6 years ago)
- Last Synced: 2024-12-20T09:47:29.581Z (about 1 month ago)
- Topics: delay, delay-promise, promise, timeout, waiting
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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