Why are almost all operators on Channels marked as...
# coroutines
r
Why are almost all operators on Channels marked as obsolete, but the simple ".map" is not?
g
Because they will be replaced by Flow https://github.com/Kotlin/kotlinx.coroutines/issues/254
r
But does it mean it's safe to use simple .map() on channels? Or should I replace Channel with Flow if I want to use .map()?
g
Yes, better to use Flow, but it experimental
safe to use simple .map()
Depends on what you mean by “safe”, most probably this API will be deprecated and removed one day