No video

Launch vs Async in Kotlin Coroutines

  Рет қаралды 7,767

Amit Shekhar

Amit Shekhar

Күн бұрын

Пікірлер: 23
@deepakkanyan1072
@deepakkanyan1072 7 ай бұрын
Hey Amit, Again very good video: [ Misconception: launch{} return nothing ]. 💯
@amitshekhar
@amitshekhar 7 ай бұрын
Glad that you liked it
@AmitVerma-iq3oe
@AmitVerma-iq3oe 7 ай бұрын
Very informative explanation, short, sweet and simple explanation!
@amitshekhar
@amitshekhar 7 ай бұрын
Glad you liked it
@baijusharma6027
@baijusharma6027 7 ай бұрын
Thank you for continuing this series 🙏
@amitshekhar
@amitshekhar 7 ай бұрын
Most welcome
@superlucky3999
@superlucky3999 2 ай бұрын
Really helpful thank you
@amitshekhar
@amitshekhar 2 ай бұрын
Most welcome
@KunalGoyal
@KunalGoyal 7 ай бұрын
please make a video on types of dispatchers and their use case with withContext
@amitshekhar
@amitshekhar 7 ай бұрын
Noted
@deepakkanyan1072
@deepakkanyan1072 7 ай бұрын
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.
@amitshekhar
@amitshekhar 7 ай бұрын
Noted
@iftak01
@iftak01 4 ай бұрын
Good video explannation
@amitshekhar
@amitshekhar 4 ай бұрын
Keep learning and keep growing
@undeadredemption_
@undeadredemption_ 7 ай бұрын
I was asked this recently in an interview.
@amitshekhar
@amitshekhar 7 ай бұрын
Good to know
@deepalibhujbal1964
@deepalibhujbal1964 5 ай бұрын
Can you please make a video on BLE ??
@amitshekhar
@amitshekhar 5 ай бұрын
Noted
@vipinkumar7230
@vipinkumar7230 6 ай бұрын
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
@amitshekhar
@amitshekhar 6 ай бұрын
As you mentioned: "async{} does not execute until we call await()". Please experiment regarding this statement and let us know the result.
@hoangminhhung25391
@hoangminhhung25391 5 ай бұрын
Agree with u, launch or aysnc still crash if u not use try/catch exception
@mwshubham
@mwshubham 5 ай бұрын
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.
@PavanBilagi
@PavanBilagi Ай бұрын
@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()
internal visibility modifier in Kotlin
5:42
Amit Shekhar
Рет қаралды 5 М.
lateinit vs lazy in Kotlin
8:17
Amit Shekhar
Рет қаралды 7 М.
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 9 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 47 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 42 МЛН
The Essence of Coroutines
8:10
Dave Leeds
Рет қаралды 9 М.
5 Fatal Coroutine Mistakes Nobody Tells You About
18:15
Philipp Lackner
Рет қаралды 86 М.
Kotlin Multiplatform vs Flutter: Which should we use?
4:42
Kei Fujikawa
Рет қаралды 19 М.
What's Coming Next to JavaScript? by Nicolò Ribaudo
31:58
reified keyword in Kotlin
7:58
Amit Shekhar
Рет қаралды 10 М.
95% Don't Understand THIS About Coroutines (Main-Safety)
9:38
Philipp Lackner
Рет қаралды 27 М.
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 232 М.
Reactive Spring Boot With Kotlin Coroutines: Adding Virtual Threads
1:23:41
Kotlin by JetBrains
Рет қаралды 11 М.
Sealed Classes for UI State are an ANTI-PATTERN - Here's why!
9:53
Philipp Lackner
Рет қаралды 21 М.
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 9 МЛН