Do<L, A> function

TaskEither<L, A> Do<L, A>(
  1. DoFunction<L, A> f
)

Implementation

TaskEither<L, A> Do<L, A>(DoFunction<L, A> f) =>
    TaskEither(Task(() => f(_doAdapter<L>()).then(
          (a) => either.right(a),
          onError: (e) => either.left<L, A>(e.value),
        )));