🦕 module for sleep. You can sleep for a specific amount of time or you can sleep for a random amount of time with this.
Attributes
Popular
Repository
Current version released
3 years ago
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
Support my Open Source Contributions
If you like my work please consider downloading the brave browser via my promotion link: https://brave.com/fan464.