https://kotlinlang.org logo
d

desseim

10/10/2015, 3:39 PM
if it’s accessible to other thread (on the heap) then yeah.
volatile
just makes the readers more likely to read the latest value than a stale one.