Комментарии:
Great explanation
ОтветитьGood explanation, But you didnot mention How can we run both functions in different time!!
Ответитьdoes suspend function launches new coroutine or not please answer??
Ответитьis the Suspend function used only to restrict a function to call inside a Coroutine scpoe or suspend function ? is there any other reason to use suspend function
ОтветитьClear and Precise with explanation..
Ответитьcommenting for YT algo
ОтветитьShould I switch Dispatcher y every network call or set dispatcher in the coroutine?
ОтветитьNice explanation. Thanks.
ОтветитьExcellent Video, very useful, regards from Caracas, Venezuela :)
ОтветитьJust to mention, the networkCall() methods return the result after 3 seconds to their respective variables, but it needs 3+3=6 seconds to write them in the logcat.
ОтветитьIs there any roadmap we should take when watching your videos? I started with the Kotlin course then moved on to the android fundamentals course until I realized that I needed to learn some Jetpack Compose and started that until learning I needed to learn about coroutines and am now here.
ОтветитьI have been watching your videos from a week now and I have to say I have never understood things better than ever.
Ответить+
Ответитьgreat work...
very helpful and organised
cause you are logging message after call, it takes 6 second. if you logging result after each call, it would be 3 second. <3
ОтветитьOh so that's the thing, when people say that suspend functions can be paused and resumed, actually they pause and resume the coroutine, in which scope they are running right?
ОтветитьOne key takeaway, code inside the launch is synchronous, Execution will wait until each line gets completed.
Ответитьphilipppppppp is born to be a teacher !!
ОтветитьNice clear and informative video, cheers.
ОтветитьGood tutorial Bro!
ОтветитьI would subscribe to your channel 10000000 times if there were any such option.
ОтветитьHey got a quick question, if instead of assigning values to doNetworkCall and doNetworkCall2, we just said Log.d(TAG,doNetworkCall()) would it make a difference?
ОтветитьAmazing!!! just keep doint this type of amazing videos. Thanks for the videos.
ОтветитьVery clear explanation. Nice work. Thanks dude
ОтветитьBut you didn't explain what is a suspend function and why to use it.
ОтветитьVery easy and interactive way to teach coroutines. Keep it up.
Ответитьthese videos are freaking excellent. i will recommend to all my android buddies. +1000000000 <3
ОтветитьBro what's the difference when we call suspend or non-suspend function in coroutine?
ОтветитьAwesome explanation.
I have a doubt regarding the adding up of delay times.
I tried following the same example, but in my case, it took 3 secs to print the first function response and after another 3 seconds, it printed the second function response unlike how it printed both the statements after 6 seconds. Is there a reason why it is happening like that?
GlobalScope.launch {
Log.d(TAG,doNetworkCall())
Log.d(TAG,doNetworkCall2())
}
suspend fun doNetworkCall():String {
delay(3000L)
return "this is a custom suspend function"
}
suspend fun doNetworkCall2():String {
delay(3000L)
return "this is a custom suspend function2"
}
Great work😍
If you can speak slowly to let us write notes behind you ❤️
Finally I am starting to understand coroutines. You are doing a great job Sir.
Ответитьthank you so much. I will make sure to leave a like on every video i see. thats the least I could do.
ОтветитьThank You good explanation.
Ответитьyou got a new subscriber
ОтветитьYou are excelent!!
ОтветитьVery nice. Hope you will tell us about the influence of the delay on the delay in next videos)
ОтветитьWhy is the delay added up? why is it not, that the first "This is the answer" statement printed after 3 second and the next after 3 more seconds?
Could you please help to clear my doubt.
You deserve a lot more subscribers
Ответитьdelay and suspend functions are basically same, so how can we identify usage scenario means when to use delay and where suspend functions
ОтветитьSimply the best!
ОтветитьSince you can actually run regular functions inside of a corountine, what is the actual purpose of a suspend function? What's the point?
ОтветитьHelpful video thank you
ОтветитьNice 👌🏻
ОтветитьThanks for this awsome content man.
ОтветитьBest channel ever !
Ответить