Skip to content

Commit

Permalink
Handle exceptions on K/N by invoking 'processUnhandledException' (Kot…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwwdfsad authored and pablobaxter committed Sep 14, 2022
1 parent 02245a2 commit 7fffa11
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -5,12 +5,14 @@
package kotlinx.coroutines

import kotlin.coroutines.*
import kotlin.native.*

internal actual fun initializeDefaultExceptionHandlers() {
// Do nothing
}

@OptIn(ExperimentalStdlibApi::class)
internal actual fun handleCoroutineExceptionImpl(context: CoroutineContext, exception: Throwable) {
// log exception
exception.printStackTrace()
processUnhandledException(exception)
}

0 comments on commit 7fffa11

Please sign in to comment.