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

eygraber

06/20/2019, 3:14 PM
Is there an article that explains Flow in terms of RxJava? I find myself mentally comparing the two while reading Flow documentation, and I'm getting stuck on figuring out what corresponds to what. I'm thinking that since I already know most of the abstract concepts it would be helpful if it were spelled out in terms of the concrete concepts from rx, e.g. X in Flow correlates to Y in rx. Even a simple table would be helpful.
g

gildor

06/20/2019, 3:42 PM
Not really explanation of Flow in terms of RxJava, but gives some comparasion https://medium.com/@elizarov/reactive-streams-and-kotlin-flows-bfd12772cda4
Not sure that such table is exist, because it would be probably not very correct comparasion in many cases, maybe you have some particular question about some concepts that are not clear for you
There is a guide that compares coroutines with reactive streams, but it quite outdated because doesn't include Flow, oy Channels, but still may be helpful https://github.com/Kotlin/kotlinx.coroutines/blob/master/reactive/coroutines-guide-reactive.md
e

eygraber

06/20/2019, 4:05 PM
lol thanks I actually read both of those, which led me to my question 😄 I don't have any specific question. I'm more looking for a shortcut to understanding them.
g

gildor

06/20/2019, 4:09 PM
I would recommend just read kotlinx coroutines guide, you cannot be familiar with coroutines without it.
e

eygraber

06/20/2019, 4:21 PM
👍
Is there a good recent presentation on it (something that reflects the latest changes like structured concurrency, etc...)?
g

gildor

06/20/2019, 4:24 PM
Yes, official guide includes structured concurrency
e

eygraber

06/20/2019, 4:25 PM
Sorry, I meant a video like at a conference
g

gildor

06/20/2019, 4:25 PM
Nope, I don't know videos about structured concurrency
Just check official guide, it includes all required info https://kotlinlang.org/docs/reference/coroutines/coroutines-guide.html Also there are a couple blog posts about it by Roman
m

marstran

06/20/2019, 4:38 PM
Roman’s talk on KotlinConf last year covered structured concurrency:

https://www.youtube.com/watch?v=a3agLJQ6vt8

👍 1
s

sdeleuze

06/20/2019, 5:31 PM
My article talk about that applied to Reactor but that’s similar https://spring.io/blog/2019/04/12/going-reactive-with-spring-coroutines-and-kotlin-flow
5 Views