tock / ai.tock.shared / Executor

# Executor

`interface Executor` (source)

Manage async tasks.

### Functions

#### executeBlocking | Execute a task to another thread. `abstract fun executeBlocking(delay: Duration, runnable: () -> Unit): Unit` `abstract fun executeBlocking(runnable: () -> 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(blocking: Callable<T>, result: (T?) -> Unit): Unit`
#### setPeriodic | Execute a periodic task. `open fun setPeriodic(delay: Duration, runnable: () -> Unit): Long` `abstract fun setPeriodic(initialDelay: Duration, delay: Duration, runnable: () -> Unit): Long`