How to detect if a CoroutineDispatcher
is suspended due to a delay?
#1919
Labels
CoroutineDispatcher
is suspended due to a delay?
#1919
I want to be able to inform
Espresso
that it should not consider itself idle when there is an active coroutine with a specific name that is suspend due to adelay(..)
.One way to achieve this would be to inject a custom
delay(..)
function, but I would prefer to avoid that to keep production code simple.The difficulty I'm having is that I want to leverage the default behavior of
DefaultDelay
(which isinternal
) unless I am attempting to monitor a specificCoroutineName
for idle.The text was updated successfully, but these errors were encountered: