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

darkmoon_uk

10/27/2018, 7:14 AM
Bit of an outsider question about the state-of-play with Coroutines: I enjoy using RxJava a lot in my UI designs, but also want to keep the code as portable as possible. Is there any effort, yet, to provide an 'RxJava equivalent' library based on coroutines, which I can use to trivially port my business logic away from RxJava, so that it can be compiled by Kotlin Native?
g

gildor

10/27/2018, 8:15 AM
Cold streams will be much closer to rxjava
d

darkmoon_uk

10/30/2018, 8:56 PM
Thanks Andrey; I'm aware that a 'cold streams' capability is a key enabler towards creating Rx-style API's. But what about the bit that comes after that - where is the 'Reactive stdlib', so to speak, with all the well known combination functions?
g

gildor

10/31/2018, 5:15 AM
where is the ‘Reactive stdlib’
Let’s wait for initial release of cold streams first
with all the well known combination functions
I hope (and actually think this will be true) that kotlinx.coroutines will provide just basic set of operators. I don’t think that opeators/combinators parity should be a goal of cold streams development. If someone (like you) need full set of operators from Rx probably would be better to move it to a separate library, after all with extension functions in Kotlin it’s not a problem to extract this to a separate library
2 Views