E, A, B> static method
- A a
Map each element in the list to a TaskEither using the function
and collect the result in an
Each TaskEither is executed in parallel. This strategy is faster than sequence, but the order of the request is not guaranteed.
If you need TaskEither to be executed in sequence, use
TaskEither.traverseListWithIndex but without
index in the map function.
static TaskEither<E, List<B>> traverseList<E, A, B>( List<A> list, TaskEither<E, B> Function(A a) f, ) => traverseListWithIndex<E, A, B>(list, (a, _) => f(a));