softReference

Soft Reference Maker.

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

A soft singleton is guaranteed to be unique inside the JVM but not during the application lifetime. It may 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>