Sam
01/18/2024, 8:58 AMDavid Kubecka
01/18/2024, 9:04 AMephemient
01/18/2024, 9:05 AMfranztesca
01/18/2024, 9:08 AMephemient
01/18/2024, 9:11 AMFlow
of inputs, you can process them with limited concurrency without having to managing worker coroutines, e.g.
itemsFlow.flatMapMerge(concurrency = N) { item ->
flow {
emit(process(item))
}
}
Davio
01/18/2024, 9:19 AMrenatomrcosta
01/18/2024, 9:21 AMrenatomrcosta
01/18/2024, 9:22 AM.parallel()
operator that the Kotlin team wanted to implement? AFAIK they wanted this parallelism / flow control to not exist in bespoke operators, but rather in a "mode" of sortsSam
01/18/2024, 4:12 PM