matchSync<B> method
A synchronous version of match.
Implementation
RIO<R, B> matchSync<B>(
B Function(E _) onError,
B Function(A _) onSuccess,
) =>
ZIO.from(
(ctx) => unsafeRun(ctx).then(
(ea) => ea.matchExit(
(e) => Either.right(onError(e)),
(a) => Either.right(onSuccess(a)),
),
),
);