Package-level declarations

Types

Link copied to clipboard
expect class ContextValue<E>

A common abstraction over ThreadLocal and CoroutineContext that integrates both worlds. Allows to set a value that can be read from everywhere on the current thread or coroutine. A suspendable function can call non suspendable functions and the value is synchronized between the CoroutineContext and the internal ThreadLocal.

actual class ContextValue<E>
actual class ContextValue<E>(initialStack: List<E>)
Link copied to clipboard

Stores information on Deprecated code. This information is intended to facilitate performing the deprecation cycle.

Functions

Link copied to clipboard

Creates a mutable map with less memory overhead. This is an internal API.

Link copied to clipboard
fun <E, T> ContextValue<E>.offer(value: E, body: () -> T): T
Link copied to clipboard
expect inline fun <R> runSynchronized(lock: Any, block: () -> R): R
actual inline fun <R> runSynchronized(lock: Any, block: () -> R): R
actual inline fun <R> runSynchronized(lock: Any, block: () -> R): R
Link copied to clipboard
expect fun <K, V> MutableMap<K, V>.toSynchronizedMap(): MutableMap<K, V>
actual fun <K, V> MutableMap<K, V>.toSynchronizedMap(): MutableMap<K, V>
actual fun <K, V> MutableMap<K, V>.toSynchronizedMap(): MutableMap<K, V>