parallel Map
fun <T, R> Collection<T>.parallelMap(context: OperationContext, concurrencyLevel: Int = 10, dispatcher: <Error class: unknown class> = Dispatchers.IO, transform: suspend (T) -> R): List<R>
Map parallel. Block on all results
Parameters
T
the type of elements in the collection
R
the type of the result of the transformation
context
the operation context
concurrency Level
the maximum number of concurrent operations
dispatcher
the coroutine dispatcher to use for parallel execution
transform
the transformation function to apply to each element