taskRun

fun taskRun(sync: Boolean = true, runnable: () -> Unit)

Executes the given runnable either sync or async (specified by the sync parameter).