threadLocal

fun <T : Any> threadLocal(value: T): ReadOnlyProperty<Any, T?>

Deprecated (with error)

Is obsolete in new memory model.

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.

It will have value in creation thread and null otherwise.