Let's say I have some variable x (of type myClass), which is initially null and some assignment
x = myObject
occuring exactly once in some background thread.
Is it guaranteed that x always contains either null or myObject when accessed from the main thread? Or is it possible that x contains some invalid data shortly?