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

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

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -