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

fail

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

Construct an AsyncEither<B, A> from a value B.

@example
import * as AE from "./async_either.ts";

const value = AE.fail("Error!");

const result = await value(); // Left("Error!");
function fail<A = never, B = never>(b: B): AsyncEither<B, A>;
§
fail<A = never, B = never>(b: B): AsyncEither<B, A>
[src]

§Type Parameters

§
A = never
[src]
§
B = never
[src]

§Parameters

§Return Type