@acurrz/node-sleep
v1.0.0
Published
Put a break in your code!
Downloads
6
Readme
Sleep
The sleep module allows you to easily put a break in your code.
Installation
npm install @acurrz/node-sleep
Usage
const { sleep } = require('@acurrz/node-sleep');
// Must be in an async function.
async function test(){
console.log('lol1')
await sleep(time) // Must be in milliseconds.
console.log('lol2')
}
test()