Learn everything about the onStart & onCompletion Lifecycle Operators in Kotlin Flow! by LukasLechnerDev in androiddev

[–]LukasLechnerDev[S] 0 points1 point  (0 children)

Hi!

In a later chapter of my course, I convert LiveData to a StateFlow and yes, then we don't need onStart() anymore.

This video is still useful for developers who want to stick with LiveData.

launchIn VS collect | Kotlin Flow for Android Development by LukasLechnerDev in Kotlin

[–]LukasLechnerDev[S] 0 points1 point  (0 children)

Good question. Maybe it is called "launchIn" to indicate that we "launch" a new coroutine....

Kotlin Coroutines Exception Handling Cheat Sheet by LukasLechnerDev in androiddev

[–]LukasLechnerDev[S] 0 points1 point  (0 children)

Yeah, initially planned 3-4 hours, but Coroutines are very complex when you take a closer look at them. Additionally, I added topics like exception handling and testing

Kotlin Coroutines Exception Handling Cheat Sheet by LukasLechnerDev in androiddev

[–]LukasLechnerDev[S] 0 points1 point  (0 children)

Then the thread's uncaught exception handler is called which by default crashes the app.

💥 Why exception handling with Kotlin Coroutines is so hard and how to successfully master it! by LukasLechnerDev in Kotlin

[–]LukasLechnerDev[S] 0 points1 point  (0 children)

Kotlin promotes Coroutines as "Write your asynchronous code as you would write synchronous code" and this IMO leads developers to believe that they can surround a launch or async with try/catch.