import { fn_either } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { tryCatch } = fn_either;
Wrap any function in a try catch block. The returned function will lazily call and handle any throwing of the wrapped function. Non-throwing calls will be returned in a Right, and throwing calls will have their error and arguments passed to the onThrow function before being returned in a Left.