Coroutines shine mafitacin Kotlin don asynchronous programming — rubuce-rubuce na async code (kiran network, ayyukan database) da suke karanta a jajere ba tare da bugi Thread na gida. Su ne hanyar zamani mai aimanci don kula da aiki na async a Android, guje wa hadaddun callback.
Abin da async ke kamata a 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.
