Searched refs:ThreadContextElement (Results 1 – 11 of 11) sorted by relevance
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/ |
D | ThreadContext.kt | 17 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/ |
D | NoParamAssertionsTest.kt | 16 …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()
|
D | ThreadContextOrderTest.kt | 20 private val transactionalElement = object : ThreadContextElement<String> { 37 private val loggingElement = object : ThreadContextElement<String> {
|
D | FailingCoroutinesMachineryTest.kt | 39 private object FailingUpdate : ThreadContextElement<Unit> { in <lambda>() 54 private object FailingRestore : ThreadContextElement<Unit> { in <lambda>()
|
D | ThreadContextElementTest.kt | 161 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/ |
D | ThreadContextElement.kt | 61 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()
|
D | CoroutineContext.kt | 289 ) : ThreadContextElement<String>, AbstractCoroutineContextElement(CoroutineId) {
|
/external/kotlinx.coroutines/integration/kotlinx-coroutines-slf4j/src/ |
D | MDCContext.kt | 48 ) : ThreadContextElement<MDCContextMap>, AbstractCoroutineContextElement(Key) {
|
/external/kotlinx.coroutines/integration/kotlinx-coroutines-slf4j/api/ |
D | kotlinx-coroutines-slf4j.api | 1 …text : kotlin/coroutines/AbstractCoroutineContextElement, kotlinx/coroutines/ThreadContextElement {
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/ |
D | kotlinx-coroutines-core.api | 151 …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/ |
D | CHANGES_UP_TO_1.7.md | 420 * 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.
|