Coroutines Kotlin का asynchronous programming के लिए समाधान है — ऐसा async code (network calls, database operations) लिखना जो main thread को block किए बिना क्रमिक रूप से पढ़ा जाता है। ये Android में async काम handle करने का आधुनिक, recommended तरीका हैं, जो callback की जटिलता से बचते हैं।
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.
