You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implemented CopyableThreadContextElement with a copyForChildCoroutine(). (#3025)
* This is a `ThreadContextElement` that is copy-constructed when a new coroutine
is created and inherits the context.
Co-authored-by: Tyson Henning <[email protected]>
Fixes#2839
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/api/kotlinx-coroutines-core.api
+11
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,17 @@ public final class kotlinx/coroutines/CompletionHandlerException : java/lang/Run
140
140
public fun <init> (Ljava/lang/String;Ljava/lang/Throwable;)V
141
141
}
142
142
143
+
public abstract interface class kotlinx/coroutines/CopyableThreadContextElement : kotlinx/coroutines/ThreadContextElement {
144
+
public abstract fun copyForChildCoroutine ()Lkotlinx/coroutines/CopyableThreadContextElement;
145
+
}
146
+
147
+
public final class kotlinx/coroutines/CopyableThreadContextElement$DefaultImpls {
148
+
public static fun fold (Lkotlinx/coroutines/CopyableThreadContextElement;Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
149
+
public static fun get (Lkotlinx/coroutines/CopyableThreadContextElement;Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;
150
+
public static fun minusKey (Lkotlinx/coroutines/CopyableThreadContextElement;Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext;
151
+
public static fun plus (Lkotlinx/coroutines/CopyableThreadContextElement;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
152
+
}
153
+
143
154
public abstract interface class kotlinx/coroutines/CopyableThrowable {
144
155
public abstract fun createCopy ()Ljava/lang/Throwable;
0 commit comments