<Understanding couroutines in Kotlin> I'm trying t...
# stackoverflow
r
Understanding couroutines in Kotlin I'm trying to understand how Kotlin couroutines work and why they are said to be more efficient than threads. As I understand it so far: when a suspend function is paused, under the hood it volutarily gives control back to the caller, which in turn does the same thing until we reach some kind of "root" call that manages everything, e.g. the couroutine scheduler the scheduler checks which paused functions are ready to resume and tells them to continue it is basically something like a qeueue...