Package io.ktor.utils.io.concurrent

Functions

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

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

actual inline fun <T> shared(value: T): ReadWriteProperty<Any, T>

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

actual inline fun <T> shared(value: T): ReadWriteProperty<Any, T>

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

actual inline fun <T> shared(value: T): ReadWriteProperty<Any, T>

Allows to create 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
expect 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.

actual 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.

actual 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.

actual 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.