method AsyncResult.prototype.inspectErr
AsyncResult.prototype.inspectErr(fn: (error: E) => void | Promise<void>): AsyncResult<T, E>

Performs a side effect on the Err value without changing the result.

Parameters

fn: (error: E) => void | Promise<void>

Function to call with the error value (if Err)

Return Type

This AsyncResult, unchanged

Usage

import { AsyncResult } from "result/mod.ts";