commonMain.Runnable.common.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlinx-coroutines-core-jvm Show documentation
Show all versions of kotlinx-coroutines-core-jvm Show documentation
Coroutines support libraries for Kotlin
The newest version!
package kotlinx.coroutines
/**
* A runnable task for [CoroutineDispatcher.dispatch].
*
* It is equivalent to the type `() -> Unit`, but on the JVM, it is represented as a `java.lang.Runnable`,
* making it easier to wrap the interfaces that expect `java.lang.Runnable` into a [CoroutineDispatcher].
*/
public expect fun interface Runnable {
/**
* @suppress
*/
public fun run()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy