1 package kotlinx.coroutines.internal 2 3 internal expect class CommonThreadLocal<T> { getnull4 fun get(): T 5 fun set(value: T) 6 } 7 8 /** 9 * Create a thread-local storage for an object of type [T]. 10 * 11 * If two different thread-local objects share the same [name], they will not necessarily share the same value, 12 * but they may. 13 * Therefore, use a unique [name] for each thread-local object. 14 */ 15 internal expect fun<T> commonThreadLocal(name: Symbol): CommonThreadLocal<T> 16