Solutions
Multiplatform
Server-side
Data science
Android
Docs
API
APIs overview
Standard library (stdlib)
Test library (kotlin.test)
Coroutines (kotlinx.coroutines)
Serialization (kotlinx.serialization)
Kotlin I/O library (kotlinx-io)
Date and time (kotlinx-datetime)
JVM Metadata (kotlin-metadata-jvm)
Kotlin Gradle plugins
Ktor
Community
Teach
Play
Playground
Koans
kotlinx.coroutines
Toggle table of contents
1.10.2
common
Platform filter
common
Switch theme
Search in API
kotlinx.coroutines
kotlinx-coroutines-test
/
kotlinx.coroutines.test
/
TestCoroutineScheduler
/
runCurrent
run
Current
fun
runCurrent
(
)
(
source
)
Runs the tasks that are scheduled to execute at this moment of virtual time.