Skip to content

Commit eeeb99c

Browse files
committed
Restoring binary compatibility: another attempt
1 parent f309e2f commit eeeb99c

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

Diff for: kotlinx-coroutines-core/api/kotlinx-coroutines-core.api

+5
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ public abstract interface class kotlinx/coroutines/CopyableThrowable {
160160
}
161161

162162
public final class kotlinx/coroutines/CoroutineContextKt {
163+
public static final synthetic fun newCoroutineContext (Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
164+
public static final synthetic fun newCoroutineContext (Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
165+
}
166+
167+
public final class kotlinx/coroutines/CoroutineContext_commonKt {
163168
public static final fun newCoroutineContext (Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
164169
public static final fun newCoroutineContext (Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
165170
}

Diff for: kotlinx-coroutines-core/common/src/CoroutineContext.common.kt

-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
@file:JvmMultifileClass
2-
@file:JvmName("CoroutineContextKt")
31
package kotlinx.coroutines
42

53
import kotlinx.coroutines.internal.*
64
import kotlin.coroutines.*
7-
import kotlin.jvm.JvmMultifileClass
8-
import kotlin.jvm.JvmName
95

106
@PublishedApi // to have unmangled name when using from other modules via suppress
117
@Suppress("PropertyName")

Diff for: kotlinx-coroutines-core/jvm/src/CoroutineContext.kt

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
@file:JvmMultifileClass
2-
@file:JvmName("CoroutineContextKt")
31
package kotlinx.coroutines
42

53
import kotlinx.coroutines.internal.*
64
import kotlin.coroutines.*
7-
import kotlin.coroutines.jvm.internal.CoroutineStackFrame
85

96
/**
107
* Adds optional support for debugging facilities (when turned on)
@@ -53,3 +50,15 @@ internal data class CoroutineId(
5350
Thread.currentThread().name = oldState
5451
}
5552
}
53+
54+
@Deprecated(level = DeprecationLevel.HIDDEN, message = "Binary compatibility with 1.10.0 and earlier, was experimental")
55+
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
56+
@kotlin.internal.LowPriorityInOverloadResolution
57+
public fun CoroutineScope.newCoroutineContext(context: CoroutineContext): CoroutineContext =
58+
newCoroutineContext(context)
59+
60+
@Deprecated(level = DeprecationLevel.HIDDEN, message = "Binary compatibility with 1.10.0 and earlier, was internal")
61+
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
62+
@kotlin.internal.LowPriorityInOverloadResolution
63+
public fun CoroutineContext.newCoroutineContext(addedContext: CoroutineContext): CoroutineContext =
64+
newCoroutineContext(addedContext)

0 commit comments

Comments
 (0)