weakReference

Weak Reference Maker.

Use this with refSingleton or refMultiton to bind a weak singleton or multiton.

A weak singleton is guaranteed to be unique inside the JVM but not during the application lifetime. It will be GC'd if there are no strong references to it and therefore may be re-created later.

Functions

Link copied to clipboard
open fun <T : Any> make(creator: () -> T): <Error class: unknown class><T>