Given a collection, and some function to map over the collection whose result type is a future disjunction, this function runs the given function over the collection sequentially.
Given a collection, and some function to map over the collection whose result type is a future disjunction, this function runs the given function over the collection sequentially. Use this when you would have a list of Futures that cannot be run in parallel, for example if they will all run on the same database connection.
val fooList: IndexedSeq[Foo] = Vector(foo1, foo2, foo3) def barFunc(foo: Foo): Future[Bar] // The resultant list will be generated sequentially with no parallel operations val futureBarList: Future[IndexedSeq[Bar]] = serializedT(fooList)(barFunc)