Coroutines minangka solusi Kotlin kanggo asynchronous programming — nulis async code (network calls, database operations) sing maca secara sequential tanpa ngalangi main thread. Iki minangka cara modern, sing direkomendasikan, kanggo nangani async work ing Android, nglindari kompleksitas callback.
Mengapa async penting ing Android
The MAIN (UI) thread must stay responsive — blocking it (with network/DB work) freezes
the UI (ANR "Application Not Responding" errors):
→ long operations MUST run off the main thread (asynchronously)
→ old approaches: callbacks (nested, complex), threads/AsyncTask (verbose, error-prone)
→ COROUTINES make async code clean and sequential.
