sleep function for javascript
npm install suimin --save
const suimin = require('suimin');
async function test() {
console.log('Taking a break...');
await suimin(2000);
console.log('Two second later');
}
test();
npm install
npm test
sleep function for javascript
npm install suimin --save
const suimin = require('suimin');
async function test() {
console.log('Taking a break...');
await suimin(2000);
console.log('Two second later');
}
test();
npm install
npm test