Also, are there any examples for the atomic refere...
# kotlin-native
s
Also, are there any examples for the atomic references being used? This is supposed to help with concurrency right?
t
It is pretty much simple and straightforward, isn't it?
s
My thought would be to share the atomic reference between threads, but then the atomic reference wouldn't be frozen. It's not straightforward based on my understanding of the current rules.
o
you can only write frozen object to atomic reference, but you could write different frozen objects to the same atomic reference
s
Makes more sense. Thanks