SingletonReference

object SingletonReference : RefMaker

A reference that acts as a Singleton: calls a creator function the first time, and then always return the same instance.

Functions

make
Link copied to clipboard
common
open override fun <T : Any> make(creator: () -> T): Reference<T>
A Function that creates a reference.