onRunning

fun Service<*>.onRunning(context: CoroutineContext = Dispatchers.JavaFx, action: suspend CoroutineScope.(WorkerStateEvent) -> Unit)

See also

Service.setOnRunning

fun Task<*>.onRunning(context: CoroutineContext = Dispatchers.JavaFx, action: suspend CoroutineScope.(WorkerStateEvent) -> Unit)

See also

Task.setOnRunning