@cool-utils/sleep
v1.0.0
Published
Sleeps for a given amount of time.
Readme
@cool-utils/sleep
Sleeps for a given amount of time.
// CommonJS
const sleep = require("@cool-utils/sleep")
// ECMAScript / TypeScript
import sleep from "@cool-utils/sleep"
// Some ESLinters
import { default as sleep } from "@cool-utils/sleep"
console.log("Start")
await sleep(1000)
console.log("After 1 second")
await sleep(1000)
console.log("After 2 seconds")
await sleep(1000)
console.log("Done")Raw files minified by terser.
