Package io.ktor.utils.io.concurrent

Functions

shared

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

threadLocal

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

Allow to create thread local reference without freezing.