lifecycleScope and viewModelScope - Kotlin Coroutines

preview_player
Показать описание
In this video you will learn how to use coroutine scopes to your advantage.

⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:

💻 Let me personally review your code and provide individual feedback, so it won't backfire and cost you a fortune in future:

Dependencies used in this video:
def arch_version = '2.2.0-alpha01'

Рекомендации по теме
Комментарии
Автор

search for quality content on coroutines ends here, keep up the good work brother

ravish
Автор

"Increase text size a little bit..to 50sp"
I had a good laugh from that. )))

xKuroiKazex
Автор

Quality content....keep uploading more videos...hope your channel will be popular soon...

jakariamasudliton
Автор

Please cover custom coroutine scopes and the differences between that and the built-in ones. Thanks.

professorposh
Автор

Your videos are very sound. They do what they got to do. Great job!

chimezieorji-unegbu
Автор

Thank you very much for such useful material!

ЄвгенійКобахидзе
Автор

these are very easy to understand videos. I am so appriciate that, so I did press the like button twice..

thonguyen
Автор

When using the MVVM-Pattern. Which scope should be used in a repository when doing network request or reading/writing a database? If we have a viewmodel that calls the repository should we pass the underlying lifecycle and then use this lifecycle as a scope for the coroutine?

kryzz
Автор

Thank you so much for this awesome series.

Kunal-jptn
Автор

Hey, How can you set up onClickListerner without findviewbyId and Viewbinding. I cannot do that in my android studio

sanskarsharma
Автор

Is it right, that the coroutine holds automatically a reference of the activity from which they were started even if it doesn't use any resources of the activity? So the activity or resources won't be garbage collected even the coroutine use no ressources of the activity?

wolfrudel
Автор

Please add more teoretics parts to video

TheMrAntosiek
Автор

My question is when a Global scope routine finishes it job, does it automatically get deleted from the memory or does it still remain there? Another question is that when the lifecycle scope is finished with the job, does it get deleted as well while the fragment or activity is still operating? Thanks for your response in advance. (Danke schon)

fatihsevbanuyank
Автор

so lifecyclescope is meant to stick that coroutine to activity lifecyle, if app is ondestroy mode, the coroutine will be dismised as wel to not cause memory leak and for the viewmodelscope is meant to be used with viewmodel as it sticks to viewmodel lifecyle so when viewmodel is cleared, the coroutine is cleared too, but little question, what is the point of having this global scope, like what is the advantage of having it, thank you so much, and as always great video, good work

AlgeriaHere
Автор

Hi bro, did you have "How to run a coroutine in Service" videos.

Joe-yuwc
Автор

Could you also spot out difference between suspend fuction and completedeferred ? 6:24

larrystreehouse
Автор

vídeo muito bom, BR não desista só pq o vídeo está em inglês.

Marcoscsouzads
Автор

may i ask, why you can do click a button (setonclicklistener) inside mainActivity without findViewById?

wahyukoco
Автор

Nice work can you please make detail videos regarding scope is created and cancellations and exceptional handling in coroutine.

ganeshjogam
Автор

When calling API by onSwipeRefreshlistener under viewModelScope.launch getting error Job was canceled please help. Thanks

islamicthoughts