Skip to content

Commit 3c56ff5

Browse files
committed
Properly proxy all methods in TimeoutCoroutine stackframe machinery
1 parent ffaedf1 commit 3c56ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/common/src/Timeout.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ private open class TimeoutCoroutine<U, in T: U>(
8383
@JvmField val uCont: Continuation<U> // unintercepted continuation
8484
) : AbstractCoroutine<T>(uCont.context, active = true), Runnable, Continuation<T>, CoroutineStackFrame {
8585
override val defaultResumeMode: Int get() = MODE_DIRECT
86-
override val callerFrame: CoroutineStackFrame? get() = (uCont as? CoroutineStackFrame)?.callerFrame
87-
override fun getStackTraceElement(): StackTraceElement? = (uCont as? CoroutineStackFrame)?.getStackTraceElement()
86+
override val callerFrame: CoroutineStackFrame? get() = (uCont as? CoroutineStackFrame)
87+
override fun getStackTraceElement(): StackTraceElement? = null
8888
@Suppress("LeakingThis", "Deprecation")
8989
override fun run() {
9090
cancel(TimeoutCancellationException(time, this))

0 commit comments

Comments
 (0)