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, true)
// 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.

![](https://brave.com/)