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

jsAndWasmSharedMain.internal.CoroutineExceptionHandlerImpl.kt Maven / Gradle / Ivy

There is a newer version: 1.10.1
Show newest version
package kotlinx.coroutines.internal

import kotlinx.coroutines.*
import kotlin.coroutines.*

private val platformExceptionHandlers_ = mutableSetOf()

internal actual val platformExceptionHandlers: Collection
    get() = platformExceptionHandlers_

internal actual fun ensurePlatformExceptionHandlerLoaded(callback: CoroutineExceptionHandler) {
    platformExceptionHandlers_ += callback
}

internal actual class DiagnosticCoroutineContextException actual constructor(context: CoroutineContext) :
    RuntimeException(context.toString())





© 2015 - 2025 Weber Informatics LLC | Privacy Policy