pajatopmr
02/01/2019, 8:39 AMoctylFractal
02/01/2019, 8:43 AMdata
is thread safe, I think. if data
is accessed concurrently with a non-thread-safe-map like HashMap, it's likely to to throw ConcurrentModificationException or worse, fail silently.
reason being is that you are accessing data
on two threads, the <http://Disp.IO|Disp.IO>
threads and your main threads. even if it's not writing on both, it's still problematic for HashMap.marstran
02/01/2019, 8:45 AMactor
.pajatopmr
02/01/2019, 8:54 AMoctylFractal
02/01/2019, 8:57 AMpajatopmr
02/01/2019, 8:57 AMactor
in the link @octylFractal sent.marstran
02/01/2019, 8:58 AMoctylFractal
02/01/2019, 8:59 AMpajatopmr
02/01/2019, 9:24 AMactor
model is useful but could be better (support a more complex model). So it looks like a decent choice to fix my issue.elizarov
02/01/2019, 9:29 AMMutableMap
in this way is not safe.