chainTryCatchK<S, C, L, R, R2> function

StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R>) chainTryCatchK<S, C, L, R, R2>(
  1. FutureOr<R2> task(
    1. R value
    ),
  2. L onError(
    1. dynamic err,
    2. 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));