Join Slack
Powered by
Is there idiomatic way to enforce JVM to do happen...
# coroutines
k
krenvpravo
11/07/2017, 9:28 PM
Is there idiomatic way to enforce JVM to do happens-before when nested coroutine returns to parent one? Performance overhead is acceptable.
e
elizarov
11/07/2017, 11:49 PM
There is hapens-before an all returns and awaits. You don't have to do anything special.
k
krenvpravo
11/08/2017, 9:16 AM
Even with mutable data structures? This is an example
https://pastebin.com/nTcTV6gY
e
elizarov
11/08/2017, 9:33 AM
Yes. Coroutines guarantee
sequential
execution in the most technical meaning of this word
4
Views
Open in Slack
Previous
Next