tap<S, C, L, R> function

StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>) tap<S, C, L, R>(
  1. FutureOr<void> f(
    1. R r
    )
)

Run a side effect on a Right value. The side effect can optionally return a Future.

Implementation

StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
    tap<S, C, L, R>(
  FutureOr<void> Function(R r) f,
) =>
        flatMapFirstTask((r) => Task(() => f(r)));