https://kotlinlang.org logo
#android
Title
# android
v

vitrox1

12/11/2017, 4:35 PM
Hello guys, someone of you have an idea when coroutines are going to have stable version? do you consider them as a rx substitution or parallel use?
g

gildor

12/11/2017, 4:39 PM
Coroutines and Kotlinx.Coroutines are already stable for production
1
parallel use
Depends on what you want to parallel
rx substitution
again. depends what do you want to substitute in your code base. Coroutines provide very convenient sequential-like syntax without special operators like Rx, but it’s not one-by-one replacement, at least if you talk about kotlinx.coroutines library
c

colintheshots

12/11/2017, 5:27 PM
You can use coroutines today. In fact, there's some great libraries with extension methods for Retrofit to make it easy. The "experimental" tag just means the API may change slightly in the next major version of Kotlin, but will stay static within major versions. It's not 1:1 with Rx and both have their own useful purposes. In fact, someone could develop Rx on top of coroutines if one wanted.
v

vitrox1

12/11/2017, 6:13 PM
owh! I was confused because i heard in some meetups and reading that was not so stable and dont use it in production, thanks both of you!
k

kevindmoore

12/11/2017, 11:59 PM
I just switched from RxJava to Coroutines and it is sooo much easier
g

gildor

12/12/2017, 1:07 AM
someone could develop Rx on top of coroutines if one wanted
There is a few experiments with proof of concept of this approach https://github.com/JakeWharton/Reagent
👍 2