flatMapThrowableEnv<B> method
ZIO<R, E, B>
flatMapThrowableEnv<B>(
- FutureOr<
B> f(- A _,
- R env
- E onThrow(
- dynamic error,
- StackTrace stack
A variant of flatMapThrowable, that also provides the environment to the given function.
Implementation
ZIO<R, E, B> flatMapThrowableEnv<B>(
FutureOr<B> Function(A _, R env) f,
E Function(dynamic error, StackTrace stack) onThrow,
) =>
flatMapEnv((a, env) => ZIO.tryCatch(() => f(a, env), onThrow));