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