timed-sleep
v1.0.0
Published
sleep any execution for defined milliseconds using timed-sleep. global code execution block sleep timer like python
Downloads
11
Maintainers
Readme
timed-sleep
sleep any execution for defined milliseconds using timed-sleep
const { sleep } = require("timed-sleep");
sleep(5000)
console.log("I waited long enough!");
const { sleep } = require("timed-sleep");
(async () => (await sleep(5000)))();
console.log("I waited long enough!");
const { wait } = require("timed-sleep");
wait(5000)
console.log("I waited long enough!");