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

Houssem Zaier

07/23/2020, 7:37 AM
Hello, What is the best course/tutorial that covers Coroutines well and that you would recommend for someone who already knows RxJava and Kotlin? Many Thanks
r

Ray Ryan

07/23/2020, 1:45 PM
❤️ 1
z

Zach Klippenstein (he/him) [MOD]

07/23/2020, 3:51 PM
If you already know RxJava, the official guide on Flow might be a good place to start: https://kotlinlang.org/docs/reference/coroutines/flow.html And the Coroutines By Example section on it: https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/flow.md#asynchronous-flow Then you could zoom out to the rest of the guide/example doc for a more in-depth look at the underlying infrastructure. https://kotlinlang.org/docs/reference/coroutines/coroutines-guide.html
❤️ 1
k

kenkyee

07/25/2020, 10:26 AM
Is slide 25 in that deck correct? Great presentation otherwise...would have liked to see a list of missing operators at the end summary 🙂
z

Zach Klippenstein (he/him) [MOD]

07/25/2020, 5:54 PM
This slide? Which part looks wrong?
would have liked to see a list of missing operators at the end summary
Rx operators missing from Flow? It would be difficult to come up with such a list. Many operators that exist in Rx don’t have, and won’t have, an exact analogue in Flow, since the Flow approach is more “fewer operators that are more flexible”, whereas Rx has more specific operators for every different variation.
k

kenkyee

07/25/2020, 10:50 PM
Isn't the second flow example on the slide like Rx concatMap? In the cons at the end, is mentioned missing operators....sounds like stuff is still missing vs. less operators...
z

Zach Klippenstein (he/him) [MOD]

07/25/2020, 11:12 PM
Isn’t the second flow example on the slide like Rx concatMap?
Yea, pretty much. I think there’s more context in the voiceover if you watch the actual talk (if not, apologies!). There’s a link to a recording of the talk on the second slide.
In the cons at the end, is mentioned missing operators....sounds like stuff is still missing vs. less operators...
True, although the biggest one that is hard to write yourself is the sharing stuff, and that’s probably shipping with the 1.4 companion release.
👍 1
2 Views