Coroutines are a Kotlin feature that convert async callbacks for long-running tasks, such as database or network access, into sequential code. Coroutine are light-weight threads. A light weight thread means it doesn’t map on native thread, so it doesn’t require context switching on processor, so they are faster. Coroutines are available in many languages. Basically, there are two types of Coroutines: Stackless Stackful Kotlin implements stackless coroutines — it’s mean that the coroutines don’t have own stack, so they don’t map on native thread. Coroutines and the threads both are multitasking. But the difference is that threads are managed by the OS and coroutines by the users.(#Ref :mindOrks)
-
Notifications
You must be signed in to change notification settings - Fork 0
Way of managing background threads that can simplify code by reducing the need for callbacks. Coroutines are a Kotlin feature that convert async callbacks for long-running tasks, such as database or network access, into sequential code.
UmeshJangid/KotlinCoroutineExample
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Way of managing background threads that can simplify code by reducing the need for callbacks. Coroutines are a Kotlin feature that convert async callbacks for long-running tasks, such as database or network access, into sequential code.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published