threadLocal

object threadLocal : RefMaker

Thread Local Reference Maker.

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

A thread local singleton is guaranteed to be unique inside a thread.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
make
Link copied to clipboard
open override fun <T : Any> make(creator: () -> T): Reference<T>
A Function that creates a reference.
toString
Link copied to clipboard
open fun toString(): String