expect fun <T> shared(: T): ReadWriteProperty<Any, T>
Allows to create mutate property with frozen value. Please note that any assigned value will be frozen. |
|
expect fun <T : Any> threadLocal(value: T): ReadOnlyProperty<Any, T?>
Allow to create thread local reference without freezing. Please note that reference is thread-local only in kotlin-native. Otherwise it will be simple value reference. |