fromAsync
import { fromAsync } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/async_either.ts";Convert an Async to an AsyncEither, treating any failure as a Left.
@example
import * as AE from "./async_either.ts";
import * as A from "./async.ts";
const value = AE.fromAsync(A.wrap(1));
const result1 = await value(); // Right(1)