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

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -