asyncsleepms
v1.0.0
Published
Sleep returning a promise utilizing setTimeout.
Downloads
2
Maintainers
Readme
const sleepms = require("asyncsleepms");
// inside an async function
await sleepms(1000); // sleep/pause further execution for 1 second or 1000 ms
// or
sleepms(1000).then(() => {
// codeblock executed after 1 second or 1000 ms
});