Skip to content

Commit a8fda10

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

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

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)