delay
import { delay } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/async.ts";Add a delay to an Async computation.
@example
import { delay } from "./async.ts";
import { wrap } from "./async.ts";
import { pipe } from "./fn.ts";
const delayed = pipe(
wrap("Hello"),
delay(1000)
);
// This will wait 1 second before resolving to "Hello"
const result = await delayed();