Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/eitherway/lib/async/mod.ts>Task#trip

Yet Another Option and Result Implementation - providing safe abstractions for fallible flows inspired by F# and Rust
Latest
method Task.prototype.trip
Deprecated
Deprecated

(will be removed in 1.0.0) use Task#andEnsure instead

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

Parameters

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

Returns

Task<T, E | E2>