Skip to main content
Deno 2 is finally here 🎉️
Learn more

sleep

Usage Example

import { sleep } from "https://deno.land/x/sleep/mod.ts"

console.log('I should sleep')
await sleep(5)
console.log('Good Morning :)')

// Advanced Usage
// import { sleepRandomAmountOfSeconds } from "https://deno.land/x/sleep/mod.ts"

// console.log('I should sleep')
// await sleepRandomAmountOfSeconds(2, 4)
// console.log('Good Morning :)')

Trigger Usage Example

deno run https://deno.land/x/sleep/usage-example.ts

Trigger Test Execution

deno test https://deno.land/x/sleep/test.ts
  

Donations

Thanks to Freedom Cash, we are already free.
If you want to donate, you might consider donating to the otherparty.co.uk to ensure people do not need to donate to victims but rather donate successfully to problem solvers.

direct-democracy