https://kotlinlang.org logo
#coroutines
Title
# coroutines
f

Felix

10/27/2018, 1:51 PM
From a "memory model" viewpoint (https://en.wikipedia.org/wiki/Java_memory_model) , I'm correct in assuming coroutines always ensure an "happens-before" order for actions between suspension points in the same coroutine, even if the actions run on different threads, right?
g

gildor

10/27/2018, 3:20 PM
Yes, because on runtime this is state machine and suspension points cannot be just reordered by jit
f

Felix

10/27/2018, 4:31 PM
Thanks.
4 Views