VS
Size: a a a
VS
Oℕ
VS
def unlift[F[_]: ConcurrentEffect, A, E1, E2](
fa: F[Either[E1, A]],
domainErrMap: E1 => E2,
unexpectedErrMap: Throwable => E2): ZIO[Any, E2, A] =
Task
.concurrentEffectWith[Throwable, Either[E1, A]](_.liftIO(fa.toIO))
.mapError(unexpectedErrMap)
.flatMap(eitherResult => ZIO.fromEither(eitherResult.leftMap(domainErrMap)))
VS
ZIO[Any, Status, T]
VS
Status.fromThrowable
Oℕ
VS
Ж
VS
def convert[A, B, C](a: A): Either[B, C]
Oℕ
Ж
def convert[A, B, C](a: A): Either[B, C]
VS
Ж
def convert[A, B, C](a: A): Either[B, C]
Oℕ
Oℕ
Ж