chainFirst<C> method
- covariant TaskEither<
L, C> chain(- R b
override
Chain a request that returns another TaskEither, execute it, ignore the result, and return the same value as the current TaskEither.
Implementation
@override
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)));