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

x/hkts/io_either.ts>tryCatch

Functional programming tools: option, either, task, state, optics, etc.
Latest
variable tryCatch
import { tryCatch } from "https://deno.land/x/hkts@v0.0.52/io_either.ts";

type

<E, A>(f: Lazy<A>, onError: (e: unknown) => E) => IOEither<E, A>