chainFirst<C> method

  1. @override
TaskEither<L, R> chainFirst<C>(
  1. covariant TaskEither<L, C> chain(
    1. R b

Chain a request that returns another TaskEither, execute it, ignore the result, and return the same value as the current TaskEither.


TaskEither<L, R> chainFirst<C>(
  covariant TaskEither<L, C> Function(R b) chain,
) =>
    flatMap((b) => chain(b).map((c) => b).orElse((l) => TaskEither.right(b)));