https://kotlinlang.org logo
Title
r

Ran

02/21/2021, 3:24 AM
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:
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

louiscad

02/21/2021, 8:00 AM
Please edit your message here to specify quickly what the problem is affecting our about, without requiring people to click on the link.
r

Ran

02/22/2021, 1:30 AM
Thanks for your reminding, I edited my question.
👍 1