Hello, everyone. I'm having a coroutine problem, g...
# exposed
r
Hello, everyone. I'm having a coroutine problem, giving the following exception
Copy code
Exception in thread "main" kotlinx.coroutines.CoroutinesInternalError: Fatal exception in coroutines machinery for DispatchedContinuation[BlockingEventLoop@7ca48474, Continuation at org.jetbrains.exposed.sql.transactions.experimental.SuspendedKt$suspendedTransactionAsyncInternal$1.invokeSuspend(Suspended.kt)@59f99ea]. Please read KDoc to 'handleFatalException' method and report this incident to maintainers
my code:
Copy code
class Test() {
  suspend fun testing() : Result<Any> = newSuspendedTransaction {
    runCatching {
            /// some code
      }.onFailure {
            // some code
   }
}

fun main(args: Array<String>) {

  runBlocking {
         Test().testing()
    }
}