simon.vergauwen
12/13/2019, 12:15 PMsuspend 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.