Skip to main content
Module

x/sleep/usage-example-advanced.ts

🦕 module for sleep. You can sleep for a specific amount of time or you can sleep for a random amount of time with this.
Go to Latest
File
import { sleepRandomAmountOfSeconds } from "https://deno.land/x/sleep/mod.ts";
console.log('I should sleep')await sleepRandomAmountOfSeconds(2, 4, true)console.log('Good Morning :)')