parallelResult

suspend fun <T> Iterable<suspend CoroutineScope.() -> T>.parallelResult(): List<KotlinResult<T>>

Parallel execution of multiple resultOf lambdas. Each lambda is executed in a separate coroutine, and the results are collected as a List of KotlinResult.

Receiver

An iterable of lambdas to execute in parallel.

Return

A list of KotlinResult containing the results of each block.

See also

parallelMap

suspend fun <T> Sequence<suspend CoroutineScope.() -> T>.parallelResult(): List<KotlinResult<T>>

Parallel execution of multiple resultOf lambdas. Each lambda is executed in a separate coroutine, and the results are collected as a sequence of Deferred Results.

Receiver

A sequence of lambdas to execute in parallel.

Return

A List of KotlinResult containing the results of each block.

See also

parallelMap