can someone explain to me the underlying mechanism which tells dispatchers what coroutines are ready to be resumed? Is it some sort of queue?
l
louiscad
06/12/2019, 2:02 PM
It depends on the dispatcher implementation. Usually, it is a queue, yes.
k
kevin.cianfarini
06/12/2019, 2:03 PM
do you know of any further reading I can do on this? I want to really understand how this work under the hood
l
louiscad
06/12/2019, 2:16 PM
If you really want to understand how it works under the hood, your best option is to go into the hood, starting by cloning this repository: https://github.com/Kotlin/kotlinx.coroutines