https://kotlinlang.org logo
#coroutines
Title
# coroutines
r

Robert Jaros

12/26/2020, 12:23 AM
Hello. Let's say I want to process data from the
ReceiveChannel
and then pass the channel somewhere else in my app. Is the following approach a good solution (in sense of resources consumption and performance)? 1. Transform the channel to a
Flow
with
consumeAsFlow()
2. Use a bunch for different flow operations (
map
,
mapNotNull
etc.) 3. Transform
Flow
back to the
ReceiveChannel
with
produceIn()
d

Dominaezzz

12/26/2020, 1:07 AM
Yup, that's quite idiomatic.
🙏 1
3 Views