tryCatchK<C, A, L, R> function

ReaderTaskEither<C, L, R> Function(A value) tryCatchK<C, A, L, R>(
  1. FutureOr<R> task(
    1. A value
    ),
  2. L onError(
    1. dynamic err,
    2. StackTrace stackTrace
    )
)

A variant of tryCatch that accepts an external parameter.

Implementation

ReaderTaskEither<C, L, R> Function(A value) tryCatchK<C, A, L, R>(
  FutureOr<R> Function(A value) task,
  L Function(dynamic err, StackTrace stackTrace) onError,
) =>
    (a) => tryCatch(() => task(a), onError);