Skip to main content
Module

x/sleep/README.md

🦕 module for sleep. You can sleep for a specific amount of time or you can sleep for a random amount of time with this.
Latest
File

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