Solutions
Multiplatform
Backend
Android
Case studies
Docs
Language guide
Multiplatform development
API
APIs overview
Standard library
Test library
Coroutines
Serialization
Kotlin I/O library
Date and time
Collections Immutable
JVM Metadata
Kotlin Gradle plugins
Ktor
Compose Multiplatform Material3
Community
Teach
Play
Playground
Koans
Get started
kotlinx.coroutines
Toggle table of contents
1.11.0
common
Platform filter
common
Switch theme
Search in API
kotlinx.coroutines
kotlinx-coroutines-test
/
kotlinx.coroutines.test
/
testTimeSource
test
Time
Source
@
ExperimentalCoroutinesApi
val
TestScope
.
testTimeSource
:
TimeSource.WithComparableMarks
(
source
)
The
test scheduler
as a
TimeSource
.
See also
Test
Coroutine
Scheduler.
timeSource
Thanks for your feedback!
Was this page helpful?
Yes
No
How can we improve?
Enter your name and email address if you would like to receive a follow-up message or
contact our support
.
By submitting this form, I agree that JetBrains s.r.o. ("JetBrains") may use my name, email address, phone number, and country of residence to provide support. I agree that JetBrains may process said data using
third-party services
for this purpose in accordance with the
JetBrains Privacy Policy
.