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

Link copied to clipboard
open override fun <T : Any> make(creator: () -> T): Reference<T>

A Function that creates a reference.