import { withErrorRecovery } from "https://deno.land/x/dtils@2.6.1/mod.unstable.ts";
Call fn
, returning its result, but return recoverWith
if it errors. If fn
returns a promise,
use withAsyncErrorRecovery
x/dtils/mod.unstable.ts>withErrorRecovery
import { withErrorRecovery } from "https://deno.land/x/dtils@2.6.1/mod.unstable.ts";
Call fn
, returning its result, but return recoverWith
if it errors. If fn
returns a promise,
use withAsyncErrorRecovery