Posts

Showing posts with the label Suspend

Coroutines in Android

Image
Overview With the help of coroutines we can execute multiple task on a single thread. Coroutines are executed in a thread. One thread can have multiple coroutines. Coroutines run on top of Threads.  Dependency def coroutines_version = "1.6.1" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core: $coroutines_version " implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android: $coroutines_version "