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

Robert Jaros

04/09/2019, 5:25 PM
Why are almost all operators on Channels marked as obsolete, but the simple ".map" is not?
g

gildor

04/10/2019, 1:09 AM
Because they will be replaced by Flow https://github.com/Kotlin/kotlinx.coroutines/issues/254
r

Robert Jaros

04/10/2019, 7:42 AM
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

gildor

04/10/2019, 7:44 AM
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
8 Views