Hello. Let's say I want to process data from the `...
# coroutines
r
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
Yup, that's quite idiomatic.
🙏 1