Package-level declarations

Functions

Link copied to clipboard
fun <T> shared(value: T): ReadWriteProperty<Any, T>

Allows creating mutate property with frozen value. Please note that any assigned value will be frozen.

Link copied to clipboard
fun <T : Any> sharedLazy(function: () -> T): ReadOnlyProperty<Any, T>

Allows creating thread safe lazy to use with Kotlin-Native.

Link copied to clipboard
fun <T : Any> threadLocal(value: T): ReadOnlyProperty<Any, T?>

Allow creating thread local reference without freezing. Please note that reference is thread-local only in kotlin-native. Otherwise, it will be simple value reference.