I have a single thread backed dispatcher to be used with coroutines. Could someone tell if the submitted coroutines will execute in order of submission or if they can be executed out of order.
d
Dominaezzz
04/01/2019, 10:34 AM
In order but will be interleaved.
s
Saurabh
04/01/2019, 11:20 AM
What do you mean by interleaved? Could you give an example.
d
Dominaezzz
04/01/2019, 12:15 PM
If a coroutine suspends, another one runs while it is suspended. Kinda like thread switching.