Hey, guys,. There is a problem about kotlin corout...
# coroutines
r
Hey, guys,. There is a problem about kotlin coroutine. I used
kotlinx-coroutines-test
library to test my coroutines code. But after I used
TestCoroutineDispatcher
to mock the dispatcher, the coroutine resumed continually until throw an exception with the message:
Copy code
kotlinx.coroutines.CoroutinesInternalError: Fatal exception in coroutines machinery for DispatchedContinuation[TestCoroutineDispatcher[currentTime=0ms, queued=0], Continuation at xxx.viewmodel.CarListViewModel$loadCars$1.invokeSuspend(CarListViewModel.kt)@1da6ee17]. Please read KDoc to 'handleFatalException' method and report this incident to maintainers
You can find the specific code at https://youtrack.jetbrains.com/issue/KT-45088.
l
Please edit your message here to specify quickly what the problem is affecting our about, without requiring people to click on the link.
r
Thanks for your reminding, I edited my question.
👍 1
212 Views