As Reactive approach has many advantage than anoth...
# feed
r
As Reactive approach has many advantage than another approach like, future, completeablefuture, event kotlin couroutine. doing stream chaining operator will much easy using reactive approach, in this case RxJava. https://medium.com/@gumay.raditya/proper-way-to-use-compose-in-rxjava-f89b9746a5fe
👎 8
o
What it has to do with Kotlin, I wonder?
r
Just using kotlin btw :p
c
There's no Kotlin in that article
r
See code example
In bottom of article. Source GitHub
s
I’m really wonder what you can do with RX that you can’t do in convenient way with coroutines?
c
They are completely different things
s
the beauty of coroutines is that you can do every thing with it, if you want data stream you can achieve it with channels and you have the freedom of having other players beside stream is a big plus
r
How do you do stream chaining in couroutine, I wonder?
To be honest, I also use couroutine, but in different cases.
g
kotlinx.coroutines provides some basic stream (Channel) operators: https://github.com/Kotlin/kotlinx.coroutines/blob/master/core/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels/Channels.kt#L963 Also, you can check this experimental implementataion of some Rx operators using Coroutines and Channels API https://github.com/JakeWharton/Reagent/blob/master/coroutines/src/main/kotlin/reagent/Observable.kt#L89
r
@gildor waah. Nice!!