Do<C, L, R> function

ReaderTaskEither<C, L, R> Do<C, L, R>(
  1. DoFunction<C, L, R> f
)

Implementation

ReaderTaskEither<C, L, R> Do<C, L, R>(DoFunction<C, L, R> f) =>
    ReaderTaskEither(
      (c) => TaskEither(
        Task(
          () => f(_doAdapter<C, L>(c), c).then(
            (a) => E.right(a),
            onError: (e) => E.left<L, R>(e.value),
          ),
        ),
      ),
    );