Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/eitherway/lib/async/operators.ts>andThen

Yet Another Option and Result Implementation - providing safe abstractions for fallible flows inspired by F# and Rust
Latest
function andThen
Deprecated
Deprecated

(will be removed in 1.0.0) use Task instead

import { andThen } from "https://deno.land/x/eitherway@0.10.0/lib/async/operators.ts";

Parameters

thenFn: (v: T) => Result<T2, E | E2> | PromiseLike<Result<T2, E | E2>>