import { sleep } from "https://deno.land/x/effection@3.0.0-beta.3/lib/mod.ts";
Sleep for the given amount of milliseconds.
Examples
Example 1
Example 1
import { main, sleep } from 'effection';
await main(function*() {
yield sleep(2000);
console.log("Hello lazy world!");
});