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

getCombinableAsync

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

Create a Combinable instance for Async given a Combinable for the inner type.

@example
import { getCombinableAsync, wrap } from "./async.ts";
import * as N from "./number.ts";
import { pipe } from "./fn.ts";

const combinableAsync = getCombinableAsync(N.CombinableNumberSum);
const async1 = wrap(2);
const async2 = wrap(3);

const result = await pipe(
  async1,
  combinableAsync.combine(async2),
); // 5
function getCombinableAsync<A>({ combine }: Combinable<A>): Combinable<Async<A>>;
§
getCombinableAsync<A>({ combine }: Combinable<A>): Combinable<Async<A>>
[src]

§Type Parameters

§Parameters

§
{ combine }: Combinable<A>
[src]

§Return Type