resultOfEach

fun <T> resultOfEach(vararg blocks: () -> T): List<KotlinResult<T>>

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

Return

A list of KotlinResult containing the results of each block.

Parameters

blocks

The lambdas to execute.


Serial 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.

Return

A list of KotlinResult containing the results of each block.


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

Receiver

A sequence of lambdas to execute.

Return

A sequence of results containing the results of each block.