ThreadLocal

open expect class ThreadLocal<T>
kotlin.Any
   ↳ androidx.compose.ThreadLocal

Summary

Public constructors

<init>(initialValue: () -> T)

Public methods

T
get()

Unit
set(value: T)

Protected methods

open T?

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Public constructors

<init>

ThreadLocal(initialValue: () -> T)

Public methods

get

fun get(): T

set

fun set(value: T): Unit

Protected methods

initialValue

protected open fun initialValue(): T?