com.outworkers.phantom.builder.query
Transforms a TraversableOnce[A]
into a Future[TraversableOnce[B]]
using the provided function A => Future[B]
.
Transforms a TraversableOnce[A]
into a Future[TraversableOnce[B]]
using the provided function A => Future[B]
.
This is useful for performing a parallel map. For example, to apply a function to all items of a list
in parallel:
val myFutureList = Future.traverse(myList)(x => Future(myFunc(x)))