Press "Enter" to skip to content

Kotlin Coroutines 101 – Android Conference Talks



Manuel Vivo, Android Engineer from the Developer Relations Team at Google, gives an introduction to Kotlin Coroutines. Stay tuned to find out about the problems coroutines are trying to solve, how to use coroutines in Android, how to test them, and much more!

Coroutines codelab → https://goo.gle/2R3DS9k
Advanced coroutines codelab → https://goo.gle/2R1ojz6
Testing coroutines talk → https://goo.gle/3bMiUn8
Cancellation and exceptions in coroutines → https://goo.gle/39wgxU8

Android Conference Talks playlist → https://goo.gle/2WmhoEb
Subscribe to Android Developers → https://goo.gle/AndroidDevs

#Kotlin #AndroidDev #Featured

0 0 vote
Article Rating
Subscribe
Notify of
guest
19 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Shaoxing Wang
Shaoxing Wang
1 month ago

2:34 `postToMainThread(onSuccess(result))` should be `postToMainThread { onSuccess(result) }`

Suraj Gupta
Suraj Gupta
1 month ago

Nice

Carlos Daniel Munoz I
Carlos Daniel Munoz I
1 month ago

Thanks Manuel, such a really good job! Congrats to all Android team
Although I have my concerns when testing coroutines, because we need to take into consideration several scenarios .. I know this is a WIP, and sadly we have to do a lot of things to run tests successfully … it should be more straight forward. Looking forward to have improvements there, but in the end, coroutines is such a really good tool, really happy for that

Laurence Pierre
Laurence Pierre
1 month ago

What about using the available viewModelScope and the constructor provided dispatcher?
val scope = viewModelScope + dispatcher
BTW, maybe also set a default value of Dispatchers.Main to the dispatcher, so that ViewModels don't require factories.

Stevdza-San
Stevdza-San
1 month ago

Good explanation.

Carlos
Carlos
1 month ago

Nice video. i've gone blind watching it at night with the white screens tho

Mandeep Choutapelly
Mandeep Choutapelly
1 month ago

Excellent Explanation. Thanks a lot!

Javid Abbasov
Javid Abbasov
1 month ago

Thanks, it is too helpful

M&R Games
M&R Games
1 month ago

Thanks for that video! Was really interesting.

Nitin Praksh
Nitin Praksh
1 month ago

Hello Android Developers,

Really great video about coroutines but I have a question at 7:00 duration you said that execution moved to a different thread but I read many articles they said that when we call a suspended function it will suspend the function from the calling thread until or unless we got the result or error and resume it on the same thread when we got the result.

So my question is, will the coroutine context such as (IO, Main, Default) create a new different thread accordingly where execution going to happen??????

Sérgio Cruz
Sérgio Cruz
1 month ago

What's the performance cost of having yield() in every loop cycle?

Marlon López
Marlon López
1 month ago

one of the best 101 videos for coroutines

Alexey S.
Alexey S.
1 month ago

Thank you for this video. It really helps to understand.

jegham aymen
jegham aymen
1 month ago

thanks ,that was very useful and very clear presentation

Kaustubh Patange
Kaustubh Patange
1 month ago

Most of the things in this video was already explained in io 2019 talks lecture Understanding Coroutines.

goobar
goobar
1 month ago

Thanks Manuel! Nicely done 👍

Tom
Tom
1 month ago

great video you deserve more views

Tom
Tom
1 month ago

awesome video my guy

Adnaan Ahmed
Adnaan Ahmed
1 month ago

lol.. first!! 😛

19
0
Would love your thoughts, please comment.x
()
x