onCancelled

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

See also

Service.setOnCancelled

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

See also

Task.setOnCancelled