CLOVIS
04/09/2023, 9:44 AMdelay()
? I have a weird case where a coroutine is blocked indefinitely on delay(1)
. I have compared the CoroutineContext with other places in the code where delay(1)
correctly finishes immediately, and they are the same. What else should I try to find the source of the issue?
When I say it runs indefinitely, I really do mean indefinitely. Even setting the timeout argument of runTest
or using withTimeoutOrNull
doesn't stop it.CLOVIS
04/09/2023, 10:51 AMwhile(cond) { yield() }
), and because the time is stopped in runTest
as long as something is actively running, the delay
could never end