chainTryCatchK<C, L, R, R2> function
ReaderTaskEither<C, L, R2> Function(ReaderTaskEither<C, L, R> )
chainTryCatchK<C, L, R, R2>(
- FutureOr<
R2> task(- R value
- L onError(
- dynamic err,
- StackTrace stackTrace
A chainable variant of tryCatchK.
Implementation
ReaderTaskEither<C, L, R2> Function(ReaderTaskEither<C, L, R>)
chainTryCatchK<C, L, R, R2>(
FutureOr<R2> Function(R value) task,
L Function(dynamic err, StackTrace stackTrace) onError,
) =>
flatMap(tryCatchK(task, onError));