• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package kotlinx.coroutines
2 
3 /**
4  * A runnable task for [CoroutineDispatcher.dispatch].
5  *
6  * It is equivalent to the type `() -> Unit`, but on the JVM, it is represented as a `java.lang.Runnable`,
7  * making it easier to wrap the interfaces that expect `java.lang.Runnable` into a [CoroutineDispatcher].
8  */
9 public expect fun interface Runnable {
10     /**
11      * @suppress
12      */
runnull13     public fun run()
14 }
15