Тёмный
No video :(

Android Code-Along: Kotlin coroutines 

Android Developers
Подписаться 1,3 млн
Просмотров 78 тыс.
50% 1

Welcome to the first episode of the Android Code-Along series where you can watch Android experts code, tackle programming challenges, and answer your questions live!
In this first episode, Manuel Vicente Vivo and Caren Chang dive into Kotlin coroutines. They’ll dive into the recently updated Kotlin coroutines codelab and answer your questions live. Follow along by working through the codelab → goo.gle/corouti...
For more on Kotlin coroutines, check out these guides:
Kotlin coroutines overview → goo.gle/corouti...
Best practices guide → goo.gle/corouti...
Additional resources → goo.gle/3l4qEqP
Blog post referenced at 1:08:01 → goo.gle/3nqc1yj
Subscribe to Android Developers → goo.gle/Androi...

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@livingstonantony4135
@livingstonantony4135 3 года назад
38:25 Execution handling in the repository 40:40 Difference between Blocking and suspending a thread 44:50 Best way to do error handling in coroutines 46:00 suspend function in Dao and Retrofit 49:20 Retrofit and Room safe to call from the main thread 50:56 Any limitations for coroutines? 55:30 Is there a built-in way to retry a suspend function if an error occurs?
@AlbertoRusso90
@AlbertoRusso90 3 года назад
Great explanation on coroutines!!! Please do more often this kind of live lessons. Thanks again
@SriHarshaChilakapati
@SriHarshaChilakapati 3 года назад
Starts at 14:43
@bittuchouhan7977
@bittuchouhan7977 2 года назад
Ñnmnnmñnknmnnnn oñn oomnoomño kmñmmnoññmnlmnñnmommnmnnnnñnlmññmnñnommñnlmnññmnñmm
@Diguinhoooo1
@Diguinhoooo1 3 года назад
This is great! Really really realy great. Please do more of those. And also I would suggest to make more advanced tutorials(like this one or maybe even more advanced), because it is easy to find beginner guides but it is hard to find advanced tutorials
@ShijenN
@ShijenN 2 года назад
This video helped me a lot to learn about coroutine. This explanation is great.
@AndroidDevelopers
@AndroidDevelopers 2 года назад
We're so happy to hear that the video was helpful, Shijen! Be sure to check out the links in the description for even more tips and tutorials 😎
@Tiara48z
@Tiara48z 3 года назад
You guys are the best!!! Can’t express that enough.
@KeyserTheRedBeard
@KeyserTheRedBeard 3 года назад
fantastic video Android Developers. I crushed the thumbs up on your video. Always keep up the superior work.
@developeronly7235
@developeronly7235 3 года назад
Hi, Android Team, please continue this series.
@sachinkoliyot1606
@sachinkoliyot1606 3 года назад
Hi, Please put the subtitles properly while you speak. Actually I am hearing impaired and i am keen to learn Kotlin corountines.
@xeckuc
@xeckuc 3 года назад
Wow, this is really amazing... Keep this up! I think those code-alongs are really important for some developers to understand topics more deeply and have trouble with written docs (like me sometimes :P)
@neowakeup1100
@neowakeup1100 3 года назад
Please Make a updated video about Paging Library !!
@Lucas-hh4oh
@Lucas-hh4oh 3 года назад
Paging 3 is actually quite more easier now. Read the paging 3 overview, they explained how to use it. And there's also plenty of Medium blogs already covered this topic.
@LiranBarsisa
@LiranBarsisa 3 года назад
24:09 About the difference between sleep() and delay(), since the Dispatcher uses a thread pool, wouldn't it mean that using delay() , it won't really execute the code after that right away? The reason: The other threads might still working, so there won't be any free thread in the thread pool. Using sleep() prevents it, because the thread is still on the current code, not going to do anything else. As soon as the timeout of the 1 second is finished, it should resume its work.
@roshandsouza2329
@roshandsouza2329 3 года назад
Very helpful and happy to learn from experts. Looking for more such live explanation videos.
@mayurpathak7662
@mayurpathak7662 3 года назад
For sure this is more helpful than any other type of resource .
@guanacodevs
@guanacodevs 3 года назад
The "Spinner" is not a spinner, it looks like a spinner, behaves like a spinner, but is named "ProgressBar" for some funny really old reason :D Great Video
@nancythakkar2553
@nancythakkar2553 3 года назад
Great Explanation 👍
@GTEK0122
@GTEK0122 3 года назад
really helpful to understand coroutines
@goobar
@goobar 3 года назад
Love this format! Thanks for putting this on 🙂👍👍
@nikinsk
@nikinsk 3 года назад
Live lessons are awesome
@DeLL116
@DeLL116 3 года назад
It wasn't so obvious to me how you started "calling network requests from the main thread" at 49:33. I mistakenly interpreted that as "making a network request on the main thread". The key concept I had to understand is that the change made to the Retrofit fetchNextTitle() method (making it a suspend function that only returns a String) at 47:05 makes Retrofit *automagically* execute that request on a background thread.
@houssemzaier
@houssemzaier 3 года назад
please buy a book and learn seriously you are in the wrong way
@DeLL116
@DeLL116 3 года назад
@@houssemzaier That's kind of harsh. Thanks? What parts in my explanation are incorrect? I don't learn well with books. I do better learning through conversation.
@houssemzaier
@houssemzaier 3 года назад
@@DeLL116 you don't learn but you think you are.
@DeLL116
@DeLL116 3 года назад
@@houssemzaier Appreciate the help and positivity! Thanks! 👆 That's some heavy sarcasm btw.
@houssemzaier
@houssemzaier 3 года назад
@@DeLL116 anytime. Please don't be angry at me it's only an advice. After all you're born free
@chandrasaimohanbhupathi7837
@chandrasaimohanbhupathi7837 3 года назад
Excellent. Really Good explanation
@pilotmTheConjurer
@pilotmTheConjurer 3 года назад
Very helpful session.. good work guys
@jesselima_dev
@jesselima_dev 3 года назад
Hello World!!!!! Love these lives. I could not see it live.
@jerichomusa7959
@jerichomusa7959 2 года назад
1
@holatechm
@holatechm 2 года назад
Closed caption/subtitle is not showing as video, I see there is a lot of delay in caption and video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FWxeDqM_WIU.html
@purpledaysable
@purpledaysable 3 года назад
Thank you very much.
@AndrewDChristie
@AndrewDChristie 2 года назад
love this video
@AkshayDave
@AkshayDave 2 года назад
how did i not know this?
@shabanasty1245
@shabanasty1245 3 года назад
make more such videos
@sushilraikwar4774
@sushilraikwar4774 2 года назад
Good should offical allounce java also offical language as like kotlin. Java and kotlin both should be official language for Android because so many developer java with Android. Android use java platform independent and byte code feature that is why java must be offical language for Android. Good should take over oracle because of java(JSE, JEE, JME). Java mostly use for develop enterprise application.
@mdridowan5499
@mdridowan5499 2 года назад
Ok
@saurabh4326
@saurabh4326 3 года назад
wow i have just seen magic unfold here, humans are animals with special gifts
@asdfhajdkflhasdfjlhadfqer
@asdfhajdkflhasdfjlhadfqer 3 года назад
A little bit about limitations 1. It's very bad idea to use coroutines with a code that tries to ensure you do some calls in a same thread. The classic example is DB transactions implementation. You may have a case when the first DB write been invoked in poll_thread_1 and some other call in pool_thread_2. If transaction implementation have something like ensureSameThread() call, you'll get an unexpected (and fluky) error. 2.Also coroutines better to use mostly for IO operations. If your thread doing an heavyweight computations you may get a performance lack because of internal Kotlin coroutines implementation. All that coroutine marketing reports about 10_000 "lightweight threads" hides a small detail: your operations must keep a host thread in WAITING state for most a most time. 3. Coroutines aren't friendly to synchronized methods and to low level synchronization mechanisms. Everything above can be solved. But don't expect you will just add suspend keyword and everything will start to work from the box like it shown in marketing examples (except some trivial cases that are shown when Google/JetBrains trying to sell you coroutines)
@twitter.krahul1217
@twitter.krahul1217 3 года назад
please update Android oppo 8.1.0 android 9 pie we all user's request you please provide Android 9 pie
@houssemzaier
@houssemzaier 3 года назад
I expected something more deep and advanced , I mean beyond the basics
@fouadhssan5180
@fouadhssan5180 3 года назад
حد بيتكلم عربي هنا
@SAIF124
@SAIF124 3 года назад
hello dear can you guide me how to make app from website with customer layout?
Далее
What's new in Android Studio 4.2
7:10
Просмотров 52 тыс.
Kotlin Coroutines 101 - Android Conference Talks
24:49
Просмотров 134 тыс.
Untangling Coroutine Testing by Márton Braun
42:49
Просмотров 8 тыс.
Intuitive: Thinking in Compose - MAD Skills
7:10
Просмотров 113 тыс.
Coroutines Beyond Concurrency by Alex Semin
39:35
Просмотров 20 тыс.