hey Amit, Can you make a video on best way to Handle NavigationGraph in ComposeUI. thanks 1. By using routing technique 2. By using fragment (Old way Navigation graph) 3. Just using ComposeUI functions.
I think the exception handling difference that is explained is pretty misleading. async{} does not crash because you are not calling await(). The moment you call await it will crash. async{} does not execute until we call await(). So we cannot say this is a difference. Please correct me if my understanding is wrong here. @amitshekhar
Looks like my observation was correct async do get executed once task is spawned. And await is only blocking function which wait for the result which can be exception that need to be handled. Will do this experiment to understand this better.
@vipinkumar7230 1. async{} does not crash because you are not calling await(). This is correct 2. async{} does not execute until we call await(). This is wrong, The coroutine starts running as soon as async is called, but its result is not available until you call await()
Hey Amit, Again very good video: [ Misconception: launch{} return nothing ]. 💯
Glad that you liked it
Very informative explanation, short, sweet and simple explanation!
Glad you liked it
hey Amit, Can you make a video on best way to Handle NavigationGraph in ComposeUI. thanks
1. By using routing technique
2. By using fragment (Old way Navigation graph)
3. Just using ComposeUI functions.
Noted
Thank you for continuing this series 🙏
Most welcome
please make a video on types of dispatchers and their use case with withContext
Noted
Content top notch
Glad that you liked.
Really helpful thank you
Most welcome
Can you please make a video on BLE ??
Noted
I was asked this recently in an interview.
Good to know
Good video explannation
Keep learning and keep growing
I think the exception handling difference that is explained is pretty misleading. async{} does not crash because you are not calling await(). The moment you call await it will crash. async{} does not execute until we call await(). So we cannot say this is a difference. Please correct me if my understanding is wrong here. @amitshekhar
As you mentioned: "async{} does not execute until we call await()". Please experiment regarding this statement and let us know the result.
Agree with u, launch or aysnc still crash if u not use try/catch exception
Looks like my observation was correct async do get executed once task is spawned. And await is only blocking function which wait for the result which can be exception that need to be handled. Will do this experiment to understand this better.
@vipinkumar7230
1. async{} does not crash because you are not calling await().
This is correct
2. async{} does not execute until we call await().
This is wrong, The coroutine starts running as soon as async is called, but its result is not available until you call await()