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

radityagumay

01/03/2018, 2:04 PM
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

orangy

01/03/2018, 2:10 PM
What it has to do with Kotlin, I wonder?
r

radityagumay

01/03/2018, 2:12 PM
Just using kotlin btw :p
c

cedric

01/03/2018, 2:41 PM
There's no Kotlin in that article
r

radityagumay

01/03/2018, 3:05 PM
See code example
In bottom of article. Source GitHub
s

sabag.ronen

01/03/2018, 9:17 PM
I’m really wonder what you can do with RX that you can’t do in convenient way with coroutines?
c

cedric

01/03/2018, 9:18 PM
They are completely different things
s

sabag.ronen

01/03/2018, 9:21 PM
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

radityagumay

01/03/2018, 10:48 PM
How do you do stream chaining in couroutine, I wonder?
To be honest, I also use couroutine, but in different cases.
g

gildor

01/04/2018, 3:40 AM
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

radityagumay

01/04/2018, 4:17 AM
@gildor waah. Nice!!
6 Views