Is there idiomatic way to enforce JVM to do happen...
# coroutines
k
Is there idiomatic way to enforce JVM to do happens-before when nested coroutine returns to parent one? Performance overhead is acceptable.
e
There is hapens-before an all returns and awaits. You don't have to do anything special.
k
Even with mutable data structures? This is an example https://pastebin.com/nTcTV6gY
e
Yes. Coroutines guarantee sequential execution in the most technical meaning of this word