tap<L, R> function

TaskEither<L, R> Function(TaskEither<L, R> taskEither) tap<L, R>(
  1. FutureOr<void> f(
    1. R value
    )
)

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

Implementation

TaskEither<L, R> Function(TaskEither<L, R> taskEither) tap<L, R>(
  FutureOr<void> Function(R value) f,
) =>
    (fa) => TaskEither(fa.p(task.tap(either.fold(identity, f))));