jsAndWasmSharedMain.internal.StackTraceRecovery.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlinx-coroutines-core
Show all versions of kotlinx-coroutines-core
Coroutines support libraries for Kotlin
package kotlinx.coroutines.internal
import kotlin.coroutines.*
internal actual fun recoverStackTrace(exception: E, continuation: Continuation<*>): E = exception
internal actual fun recoverStackTrace(exception: E): E = exception
internal actual suspend inline fun recoverAndThrow(exception: Throwable): Nothing = throw exception
@PublishedApi
internal actual fun unwrap(exception: E): E = exception
@Suppress("UNUSED")
internal actual interface CoroutineStackFrame {
public actual val callerFrame: CoroutineStackFrame?
public actual fun getStackTraceElement(): StackTraceElement?
}
@Suppress("ACTUAL_WITHOUT_EXPECT")
internal actual typealias StackTraceElement = Any
internal actual fun Throwable.initCause(cause: Throwable) {
}