🎓 Get the full 15+ hour-long Course "Kotlin Coroutines and Flow for Android Development" with a nice discount here: www.lukaslechner.com/coroutines-flow-android?source=youtube
Hi! I use runblocking in order to be able to start a new coroutine with launch. In this coroutine, items of the flow are collected and yes, this happens on the Main Thread. However, the main thread is not blocked but only suspended while the collection happens, so this is not an issue.
🎓 Get the full 15+ hour-long Course "Kotlin Coroutines and Flow for Android Development" with a nice discount here: www.lukaslechner.com/coroutines-flow-android?source=youtube
A perfectly clear explanation
Hi having quick doubt… you adding runblocking right? Then is it will run on mainthread or its only block mainthread untill calculation finish…
Hi! I use runblocking in order to be able to start a new coroutine with launch. In this coroutine, items of the flow are collected and yes, this happens on the Main Thread. However, the main thread is not blocked but only suspended while the collection happens, so this is not an issue.
Nice👏🏻👏🏻👏🏻