Looks like you’d want to use the coroutine adapter...
# functional
s
Looks like you’d want to use the coroutine adapter to get
suspend fun getUser(): User
like API and then you can just use
suspend <A> Either.Companion.catch(f: () -> A): Either<Throwable, A>
and then you can just use
mapLeft
or another combinator to transform
Either
however you prefer.