A
Future is like an asynchronous
Try so, in general, it doesn't make much sense to have one inside another. A
Future also has a concept of success and failure and equally to
Try all failures are
Exceptions
. So that is why, sometimes tho it makes sense to have a notion of domain errors vs exceptions, but for that, it is common to use
Future[Either[DomainError, A]]
where
DomainError
is usually ADT, also on those cases it is common to use
EitherT
from
cats. - In any case, you should be asking this to whoever code review you :) —
Luis Miguel Mejía Suárez 49 secs ago