Alex Styl
09/18/2025, 9:46 AMmutableXOf are not thread safe right? I have a mutable set which i populate from within multiple coroutines (thousands) and I am missing some items after my code is executed.
I wrapped the .add calls from a single thread context scope and it seems to be working fine now.
are there any thread safe versions of mutable set of? or better yet, are there any recommended approaches to this?Dmitry Khalanskiy [JB]
09/18/2025, 9:53 AMMichael Paus
09/18/2025, 10:06 AMAlex Styl
09/19/2025, 4:49 AM