I'm working on a Finatra app where I have a Future[Seq[A]]
(from Finagle call). However, I need to convert that to a new object that contains Seq[A]
, for example
case class Container[A](s: Seq[A])
That would result in Future[Container]
.
While I can perform map on Future[Seq[A]]
, it's unclear how to arrive at Future[Container[Seq[A]]
.