1 /*
2  * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
5 package kotlinx.coroutines
6 
7 /**
8  * A runnable task for [CoroutineDispatcher.dispatch].
9  */
10 public actual typealias Runnable = java.lang.Runnable
11 
12 /**
13  * Creates [Runnable] task instance.
14  */
15 @Suppress("FunctionName")
Runnablenull16 public actual inline fun Runnable(crossinline block: () -> Unit): Runnable =
17     java.lang.Runnable { block() }
18