Hi, I am looking at the documentation of `TestDisp...
# coroutines
j
Hi, I am looking at the documentation of
TestDispatcher
(link below) and want to learn more about the interfaces
Delay
and
DelayWithTimeoutDiagnostics
, but both links lead to a page not found. Am I looking at the wrong thing? https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/-test-dispatcher/
d
Yes.
Delay
is something you typically don't need to interact wih. In short, a
CoroutineDispatcher
is a
Delay
if it can handle delayed events (like
withTimeout
or
delay
) on its own.
k
Could potentially be this cross-module dokka issue that’s resulting in the 404 https://github.com/Kotlin/dokka/issues/2272
I ran into that recently and upgrading dokka solved it
Actually, I doubt that’s the issue since linking to
CoroutineDispatcher
works fine
j
I see, thanks
d
Dokka doesn't generate pages for
Delay
and such because we tell it not to, as these are our internal things. Though it is an issue that Dokka still generates links.
j
Yeah, that makes sense
I'll read the docs in the code, that works quite well
d