Isn’t it better to approach async from coroutines ...
# datascience
o
Isn’t it better to approach async from coroutines point of view for Kotlin?
t
orangy: Yeah that might be a good go-to since it is native to Kotlin.
I wonder how coroutines interop with Rx. I need to explore that.
o
Suspension is a natural point where traveling across nodes can occur transparently, but that would need serialization of coroutine state, I suppose. @elizarov ?
k
agreed, especially since the stackless limitation was dropped, it seems like the go-to solution. a lot less complicated than quasar's post instrumentation
👍 1
e
@thomasnield Take a look at this guide. It explicitly addresses coroutines-Rx interop: https://github.com/Kotlin/kotlinx.coroutines/blob/master/reactive/coroutines-guide-reactive.md
✔️ 1
@orangy Coroutines are serializable good enough for datascience needs
👍 4
t
@elizarov bookmarked, thank you. I probably should include this in my upcoming Packt book on RxJava, in the chapter covering Kotlin interop.
👍 1