parallelAndThen

suspend fun <In, Out> Iterable<KotlinResult<In>>.parallelAndThen(success: suspend CoroutineScope.(In) -> Out): List<KotlinResult<Out>>

Parallel KotlinResult.andThen of multiple KotlinResults. Each result is processed in a separate coroutine, and the results are collected as a List of KotlinResult.

Receiver

An Iterable of KotlinResult to process in parallel.

Return

A list of KotlinResult containing the results of each block.

See also

parallelMap

suspend fun <In, Out> Sequence<KotlinResult<In>>.parallelAndThen(success: suspend CoroutineScope.(In) -> Out): List<KotlinResult<Out>>

Parallel KotlinResult.andThen of multiple KotlinResults. Each result is processed in a separate coroutine, and the results are collected as a Sequence of Deferred KotlinResult.

Receiver

A Sequence of KotlinResult to process in parallel.

Return

A List of KotlinResult containing the results of each block.

See also

parallelMap