All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nativeMain.internal.StackTraceRecovery.kt Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
/*
 * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

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

@PublishedApi
internal actual fun  unwrap(exception: E): E = exception
internal actual suspend inline fun recoverAndThrow(exception: Throwable): Nothing = throw 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) {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy