tapErrorCause<X> method

ZIO<R, E, A> tapErrorCause<X>(
  1. ZIO<R, E, X> f(
    1. Cause<E> _
    )
)

Like catchCause, but the result of the resulting ZIO is discarded.

Implementation

ZIO<R, E, A> tapErrorCause<X>(
  ZIO<R, E, X> Function(Cause<E> _) f,
) =>
    catchCause((e) => f(e).zipRight(ZIO.failCause(e)));