Egor Trutenko
05/09/2018, 4:17 AMprivate object Holder { val INSTANCE }
companion object { instance: ClassName by lazy { Holder.INSTANCE } }
Is kinda irritating to write and read.gildor
05/15/2018, 9:47 AMobject MySingleton
? It’s standard Kotlin way to create thread safe singletons with syntactic sugar accessorsgildor
05/15/2018, 9:47 AM