HenSh
02/07/2024, 2:54 PMprivate val shared: CustomSingleton by _lazy_(LazyThreadSafetyMode.SYNCHRONIZED) *{* CustomSingleton() *}*
I aim to access this singleton and his custom variable, which includes an array (read and write) from different threads.
Or can you please share what I need to learn 🙂
I really appreciate any help you can provide.CLOVIS
02/07/2024, 4:27 PMobject CustomSingleton {
// your code
}
https://kotlinlang.org/docs/object-declarations.html#object-declarations-overview