#5 Kotlin Coroutines Tutorial for Android - Async

preview_player
Показать описание
In this video we will learn about async function.

If you love my content please SHARE my courses to your friends. You can share this course, to your Facebook, WhatsApp etc.

For more contents related to Software Development visit my website.

You can SUPPORT me if you want
👉 PayTM (India Only): +917549161079

You can also check some of my other courses from these links

Lastly if you want to connect with me, you can follow me on my social profiles

❤️❤️ Thank You All for the Love and Support ❤️❤️

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

Why did you put async{} calls inside launch{} ?? async{} calls need not be inside launch{} right ?? From what i understood, if we launch multiple coroutines using async{}, all of those coroutines gets executed parallelly, instead of sequentially. Is my understanding correct ?? I have little confusion here. Is there any difference of behavior in the below two code snippets ??
In both the examples, both network calls run parallelly ??

Example1 :-
launch{
firstNetworkCall()
}
launch{
secondNetworkCall()
}

Example2 :-
async{
firstNetworkCall()
}
async{
secondNetworkCall()
}

pradeepkumarreddykondreddy
Автор

Great videos Belal. You are doing an amazing job, creating videos like these.
I had a question, shall async coroutine builder be always called inside build?

manasuniyal
Автор

Great series -- are there any plans for a video in how to do co routines in a Service? [is it even a good idea?] I have a service that needs async data is why i ask thanks again for all the work your channel does. Saves me tons of time.

JoeWaldner
Автор

Thank you so much sir
Very useful and good explanation.. 😍😍😍👌👌👌
I have one doubt sir, why are you not using the repository class while making the API request ?

sathishkumarsingaraveni
Автор

Thanku, its very helpful. How we can handle multiple callbacks using corutines. Like retrofit has success and failure two callbacks.

homecredit
Автор

Assalamualaikum Sir, You are my favorite online teacher. I think Your teaching style Is the best on YouTube.
Can you make a learning series on Sinch and Kotlin for Video & Audio Calls?
Thanks, Love from Bangladesh 💙

mdikbalhossainsazib
Автор

If someone is still referening this video, please don't panic if the appliation crashes while loading. The API used for the application is not working.

RaajKanchan
Автор

Asslam u Alikum bro can you make a video on base repository
abstract class AppRepository{
abstract fun UserRepository()
.
.
.
.
.

}

syedovaiss
Автор

Thanks for this. one small correction. you said launch doesn't return anything. but that's not correct. launch returns job

bhuvneshvarma
visit shbcf.ru