Skip to main content

parallel_map

parallel_map(const List values, const Function<Object(Object)> mapper) -> List

Applies a mapper function to every element of a List in parallel using the shared async thread pool.

Parameters

  • values: List of values to process.
  • mapper: Function that receives an element and returns the result.

Returns

A List containing the mapper results in the original order.

See also:

  • async
  • await_all