threadLocal

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.

It will have value in creation thread and null otherwise.