Here’s a great article from Ray Wenderlich | High quality programming tutorials: iOS, Android, Swift, Kotlin, Unity, and more
<p>The importance of concurrency is discovered quite early on by people who start with Android development. Android is inherently asynchronous and event-driven, with strict requirements as to on which thread certain things can happen.</p>
<p>Add to this the often-cumbersome Java callback interfaces, and you will be trapped in spaghetti code pretty quickly (aptly termed as “Callback Hell”). No matter how many coding patterns you use to avoid that, you will have to encounter the state change across multiple threads in one way or the other.</p>
<p>The only way to create a responsive app is by leaving the UI thread as free as possible, letting all the hard work be done asynchronously by background threads.</p>
<p>Kotlin Coroutines by Tutorials will teach you the techniques you need to solve common programming problems using asynchronous programming.</p>
Source link