Fatal Exception: java.lang.IllegalStateException kotlin.Unit coroutines
Anyone has a clue on how to solve this. I have check online but no helpful resources.
internal fun initialize(args: Map, completion: () -> Unit, error:
(Exception) -> Unit) {
// it crash at this point
coroutineScope.launch {
//I have some code here
}
}
Fatal Exception: java.lang.IllegalStateException: kotlin.Unit
at com.client.onenn.onenn$initialize$1.invokeSuspend(onenn.kt:70)
at...