tryCatchK2<A, B, C, L, R> function
ReaderTaskEither<C, L, R> Function(A a, B b)
tryCatchK2<A, B, C, L, R>(
- FutureOr<
R> task(- A a,
- B b
- L onError(
- dynamic err,
- StackTrace stackTrace
A variant of tryCatch that accepts two external parameters.
Implementation
ReaderTaskEither<C, L, R> Function(A a, B b) tryCatchK2<A, B, C, L, R>(
FutureOr<R> Function(A a, B b) task,
L Function(dynamic err, StackTrace stackTrace) onError,
) =>
(a, b) => tryCatch(() => task(a, b), onError);