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
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/concurrent/src/CompletionHandler.kt
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,20 @@ package kotlinx.coroutines
6
6
7
7
importkotlinx.coroutines.internal.*
8
8
9
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
10
+
// New 'CompletionHandler` supertype is added compared to the expect declaration.
11
+
// Probably we can add it to JS and common too, to avoid the suppression/opt-in
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
20
+
// New 'CompletionHandler` supertype is added compared to the expect declaration.
21
+
// Probably we can add it to JS and common too, to avoid the suppression/opt-in
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/concurrent/src/internal/LockFreeLinkedList.kt
+25-1Lines changed: 25 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,11 @@ internal val CONDITION_FALSE: Any = Symbol("CONDITION_FALSE")
42
42
*
43
43
* @suppress **This is unstable API and it is subject to change.**
44
44
*/
45
-
@Suppress("LeakingThis")
45
+
@Suppress(
46
+
"LeakingThis",
47
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
@@ -68,14 +72,20 @@ public actual open class LockFreeLinkedListNode {
68
72
}
69
73
}
70
74
75
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
publicactualopenval isRemoved:Boolean get() = next isRemoved
78
86
87
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
@@ -166,6 +176,8 @@ public actual open class LockFreeLinkedListNode {
166
176
* Where `==>` denotes linearization point.
167
177
* Returns `false` if `next` was not following `this` node.
168
178
*/
179
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
@@ -176,6 +188,8 @@ public actual open class LockFreeLinkedListNode {
176
188
returntrue
177
189
}
178
190
191
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
internalfuntryCondAddNext(node:Node, next:Node, condAdd:CondAddOp): Int {
@@ -199,6 +213,8 @@ public actual open class LockFreeLinkedListNode {
199
213
publicactualopenfunremove(): Boolean=
200
214
removeOrNext() ==null
201
215
216
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// returns null if removed successfully or next node if this node is already removed
203
219
@PublishedApi
204
220
internalfunremoveOrNext(): Node? {
@@ -255,6 +271,8 @@ public actual open class LockFreeLinkedListNode {
255
271
}
256
272
}
257
273
274
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
@@ -311,6 +329,8 @@ public actual open class LockFreeLinkedListNode {
311
329
}
312
330
}
313
331
332
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
@@ -331,6 +351,8 @@ internal fun Any.unwrap(): Node = (this as? Removed)?.ref ?: this as Node
331
351
*
332
352
* @suppress **This is unstable API and it is subject to change.**
333
353
*/
354
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
publicactualval isEmpty:Boolean get() = next ===this
336
358
@@ -352,6 +374,8 @@ public actual open class LockFreeLinkedListHead : LockFreeLinkedListNode() {
352
374
overrideval isRemoved:Boolean get() =false
353
375
overridefunnextIfRemoved(): Node?=null
354
376
377
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/js/src/internal/LinkedList.kt
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,14 @@ import kotlinx.coroutines.*
10
10
11
11
privatetypealiasNode=LinkedListNode
12
12
/** @suppress **This is unstable API and it is subject to change.** */
13
-
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS") // :TODO: Remove when fixed: https://youtrack.jetbrains.com/issue/KT-23703
13
+
@Suppress(
14
+
// :TODO: Remove when fixed: https://youtrack.jetbrains.com/issue/KT-23703
15
+
"NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS",
16
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
@@ -17,6 +21,8 @@ internal actual abstract class EventLoopImplPlatform: EventLoop() {
17
21
unpark(thread)
18
22
}
19
23
24
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/jvm/src/Executors.kt
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,12 @@ public abstract class ExecutorCoroutineDispatcher: CoroutineDispatcher(), Closea
37
37
publicabstractoverridefunclose()
38
38
}
39
39
40
+
@Suppress(
41
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/jvm/src/SchedulerTask.kt
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,12 @@ package kotlinx.coroutines
6
6
7
7
importkotlinx.coroutines.scheduling.*
8
8
9
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/jvm/test/TestBase.kt
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,12 @@ public actual typealias TestResult = Unit
54
54
* }
55
55
* ```
56
56
*/
57
-
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS") // Counterpart for @Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
57
+
@Suppress(
58
+
// Counterpart for @Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
59
+
"NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS",
60
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
@@ -80,11 +85,14 @@ public actual open class TestBase(private var disableOutCheck: Boolean) {
80
85
* Throws [IllegalStateException] like `error` in stdlib, but also ensures that the test will not
81
86
* complete successfully even if this exception is consumed somewhere in the test.
82
87
*/
88
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
@@ -108,6 +116,8 @@ public actual open class TestBase(private var disableOutCheck: Boolean) {
108
116
* Throws [IllegalStateException] when `value` is false like `check` in stdlib, but also ensures that the
109
117
* test will not complete successfully even if this exception is consumed somewhere in the test.
110
118
*/
119
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
@@ -155,12 +165,16 @@ public actual open class TestBase(private var disableOutCheck: Boolean) {
155
165
}
156
166
})
157
167
168
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
@@ -176,6 +190,8 @@ public actual open class TestBase(private var disableOutCheck: Boolean) {
176
190
}
177
191
}
178
192
193
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// onCompletion should not throw exceptions before it finishes all cleanup, so that other tests always
@@ -203,16 +219,21 @@ public actual open class TestBase(private var disableOutCheck: Boolean) {
203
219
error.get()?.let { throw it }
204
220
}
205
221
222
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
@@ -247,12 +268,16 @@ public actual open class TestBase(private var disableOutCheck: Boolean) {
247
268
error("Too few unhandled exceptions $exCount, expected ${unhandled.size}")
248
269
}
249
270
271
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
protectedinlinefun <reifiedT: Throwable> assertFailsWith(block: () ->Unit): T {
251
274
val result = runCatching(block)
252
275
assertTrue(result.exceptionOrNull() isT, "Expected ${T::class}, but had $result")
253
276
return result.exceptionOrNull()!!asT
254
277
}
255
278
279
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/native/src/internal/Synchronized.kt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ import kotlinx.atomicfu.locks.withLock as withLock2
11
11
* @suppress **This an internal API and should not be used from general code.**
12
12
*/
13
13
@InternalCoroutinesApi
14
+
// fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846
0 commit comments