try Recover Each
inline fun <T> Iterable<KotlinResult<T>>.tryRecoverEach(failure: (Throwable) -> T): List<KotlinResult<T>>
Serial KotlinResult.tryRecover 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.
Return
A list of KotlinResult containing the results of each block.
fun <T> Sequence<KotlinResult<T>>.tryRecoverEach(failure: (Throwable) -> T): Sequence<KotlinResult<T>>
Serial KotlinResult.tryRecover of multiple KotlinResults. Each result is processed in a separate coroutine, and the results are collected as a Sequence of KotlinResult.
Receiver
A Sequence of KotlinResult to process.
Return
A sequence of KotlinResult containing the results of each block.