Is there an article that explains Flow in terms of...
# coroutines
e
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
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
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
I would recommend just read kotlinx coroutines guide, you cannot be familiar with coroutines without it.
e
👍
Is there a good recent presentation on it (something that reflects the latest changes like structured concurrency, etc...)?
g
Yes, official guide includes structured concurrency
e
Sorry, I meant a video like at a conference
g
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
Roman’s talk on KotlinConf last year covered structured concurrency:

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

👍 1
s
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