1.1.0 • Published 6 years ago
@trendyminds/delay v1.1.0
⏱ Delay
A promise-based setTimeout so you can await for a duration before proceeding
Install
npm i @trendyminds/delayUsage
import delay from "@trendyminds/delay";
(async () => {
console.log("Hello");
// wait 2 seconds until the next command
await delay(2000);
console.log("world");
})();