import { tryCatch } from "https://deno.land/x/fun@v2.0.0-alpha.10/fn_either.ts";
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.