Are Kotlin's singletons thread safe? -


are kotlin singletons (more specifically, object declarations) thread-safe construction? if not, best practice write thread safe singletons in kotlin?

i guess are, haven't been able find explicit statement in docs.

kotlin "object" thread-safe construction. can see in decompile/dumping tool, declared object final class static instance initialization + language syntax sugar simplify instance access


Comments