interface Executor (source)
Manage async tasks.
executeBlocking |
Execute a task to another thread. abstract fun executeBlocking(: Duration, : () -> Unit): Unitabstract fun executeBlocking(: () -> Unit): Unit
Execute a task to another thread. If an exception is thrown by the blocking function, null is passed to the result function. abstract fun <T> executeBlocking(: Callable<T>, : (T?) -> Unit): Unit |
setPeriodic |
Execute a periodic task. open fun setPeriodic(: Duration, : () -> Unit): Longabstract fun setPeriodic(: Duration, : Duration, : () -> Unit): Long |