Home
last modified time | relevance | path

Searched refs:ThreadContextElement (Results 1 – 11 of 11) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/
DThreadContext.kt17 private val elements = arrayOfNulls<ThreadContextElement<Any?>>(n)
20 fun append(element: ThreadContextElement<*>, value: Any?) { in append()
22 elements[i++] = element as ThreadContextElement<Any?> in append()
36 if (element is ThreadContextElement<*>) { in <anonymous>()
45 …fun (found: ThreadContextElement<*>?, element: CoroutineContext.Element): ThreadContextElement<*>?… in <anonymous>()
47 return element as? ThreadContextElement<*> in <anonymous>()
53 if (element is ThreadContextElement<*>) { in <anonymous>()
77 val element = countOrElement as ThreadContextElement<Any?> in threadContextElements()
93 val element = context.fold(null, findOne) as ThreadContextElement<Any?> in restoreThreadContext()
106 ) : ThreadContextElement<T> {
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DNoParamAssertionsTest.kt16 …val function: (ThreadLocal<Int>, Int) -> ThreadContextElement<Int> = ThreadLocal<Int>::asContextEl… in testNoReceiverAssertion()
18 val unsafeCasted = function as ((ThreadLocal<Int>?, Int) -> ThreadContextElement<Int>) in testNoReceiverAssertion()
24 …val function: (ThreadLocal<Any>, Any) -> ThreadContextElement<Any> = ThreadLocal<Any>::asContextEl… in testNoParamAssertion()
26 val unsafeCasted = function as ((ThreadLocal<Any?>?, Any?) -> ThreadContextElement<Any>) in testNoParamAssertion()
DThreadContextOrderTest.kt20 private val transactionalElement = object : ThreadContextElement<String> {
37 private val loggingElement = object : ThreadContextElement<String> {
DFailingCoroutinesMachineryTest.kt39 private object FailingUpdate : ThreadContextElement<Unit> { in <lambda>()
54 private object FailingRestore : ThreadContextElement<Unit> { in <lambda>()
DThreadContextElementTest.kt161 class JobCaptor(val capturees: ArrayList<Job> = ArrayList()) : ThreadContextElement<Unit> {
218 class MyElement(val data: MyData) : ThreadContextElement<MyData?> {
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DThreadContextElement.kt61 public interface ThreadContextElement<S> : CoroutineContext.Element { interface
169 public interface CopyableThreadContextElement<S> : ThreadContextElement<S> { in updateThreadContext()
249 public fun <T> ThreadLocal<T>.asContextElement(value: T = get()): ThreadContextElement<T> = in asContextElement()
DCoroutineContext.kt289 ) : ThreadContextElement<String>, AbstractCoroutineContextElement(CoroutineId) {
/external/kotlinx.coroutines/integration/kotlinx-coroutines-slf4j/src/
DMDCContext.kt48 ) : ThreadContextElement<MDCContextMap>, AbstractCoroutineContextElement(Key) {
/external/kotlinx.coroutines/integration/kotlinx-coroutines-slf4j/api/
Dkotlinx-coroutines-slf4j.api1 …text : kotlin/coroutines/AbstractCoroutineContextElement, kotlinx/coroutines/ThreadContextElement {
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api151 …e class kotlinx/coroutines/CopyableThreadContextElement : kotlinx/coroutines/ThreadContextElement {
210 …neId : kotlin/coroutines/AbstractCoroutineContextElement, kotlinx/coroutines/ThreadContextElement {
578 public abstract interface class kotlinx/coroutines/ThreadContextElement : kotlin/coroutines/Corouti…
583 public final class kotlinx/coroutines/ThreadContextElement$DefaultImpls {
584 …public static fun fold (Lkotlinx/coroutines/ThreadContextElement;Ljava/lang/Object;Lkotlin/jvm/fun…
585 …public static fun get (Lkotlinx/coroutines/ThreadContextElement;Lkotlin/coroutines/CoroutineContex…
586 …public static fun minusKey (Lkotlinx/coroutines/ThreadContextElement;Lkotlin/coroutines/CoroutineC…
587 …public static fun plus (Lkotlinx/coroutines/ThreadContextElement;Lkotlin/coroutines/CoroutineConte…
591 …ContextElement (Ljava/lang/ThreadLocal;Ljava/lang/Object;)Lkotlinx/coroutines/ThreadContextElement;
592 …va/lang/ThreadLocal;Ljava/lang/Object;ILjava/lang/Object;)Lkotlinx/coroutines/ThreadContextElement;
/external/kotlinx.coroutines/
DCHANGES_UP_TO_1.7.md420 * Thread context is properly preserved and restored for coroutines without `ThreadContextElement` (…
421 * `ThreadContextElement`s are now restored in the opposite order from update (#2195)
1037 * `ThreadContextElement` API for custom thread-context sensitive context elements.