import { sleep } from "https://deno.land/x/ayonli_jsext@v0.9.72/async.ts";
Blocks the context for a given duration.
Examples
Example 1
Example 1
import { sleep } from "@ayonli/jsext/async";
console.log("Hello");
await sleep(1000);
console.log("World"); // "World" will be printed after 1 second