Coroutines Kotlin को asynchronous programming को समाधान हो — async code (network calls, database operations) लेख्न जो main thread लाई block नगरी sequential पढिन्छ। यो Android मा async work सम्भाल्नको लागि आधुनिक, सिफारिस गरिएको तरिका हो, callback complexity बेवास्ता गर्दै।
Android मा async किन महत्त्वपूर्ण छ
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.
