Minsoo Cheong
10/13/2021, 5:31 AMdata class Example(
var fieldA: Int,
var fieldB: Int
)
and that i change fieldA in thread 1 and fieldB in thread 2 (of a same object of class Example). would this be thread-safe? and if not so, how would I achieve thread safety?Joffrey
10/13/2021, 8:41 AMaidanvii
10/13/2021, 11:51 AMDon’t communicate by sharing memory; share memory by communicating.
DALDEI
10/18/2021, 10:34 PMMinsoo Cheong
10/27/2021, 8:54 AMDALDEI
10/29/2021, 1:19 AM