How can I transform a Future[A]
that might succeed or fail into a EitherT[Future, Throwable, A]
or a Future[Try[A]]
.
future.transform(result => Success(result))
EitherT(future.transform(result => Success(result.toEither)))
Are there methods in the standard library or within Cats that achieve the above transformation?