In this video we try to understand the difference between launch and async way or running suspend functions. The launch mechanism is used in scenarios where you want to fire and forget the coroutine. You really don't want to handle or don't care about the return value from the coroutine. Async is used in scenarios where you actually want to handle the returned values from the coroutine. We have a detailed look of this behaviour through couple of demos.
Follow me on Twitter: / anilvdeshpande
Негізгі бет Coroutines launch vs async | join & await : Kotlin Fundamentals - 54
Пікірлер: 7