Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

wrap

import { wrap } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/async.ts";

Wrap a value in an Async computation.

@example
import { wrap } from "./async.ts";

const asyncValue = wrap("Hello");
const result = await asyncValue(); // "Hello"
function wrap<A>(a: A): Async<A>;
§
wrap<A>(a: A): Async<A>
[src]

§Type Parameters

§Parameters

§Return Type