tapError<X> method
Like catchError, but the result of the resulting ZIO is discarded.
Implementation
ZIO<R, E, A> tapError<X>(
ZIO<R, E, X> Function(E _) f,
) =>
catchError((e) => f(e).zipRight(ZIO.fail(e)));
Like catchError, but the result of the resulting ZIO is discarded.
ZIO<R, E, A> tapError<X>(
ZIO<R, E, X> Function(E _) f,
) =>
catchError((e) => f(e).zipRight(ZIO.fail(e)));