tornadofx / tornadofx / javafx.beans.value.ObservableValue / onChangeTimes

onChangeTimes

fun <T> ObservableValue<T>.onChangeTimes(times: Int, op: (T?) -> Unit): Unit

Listen for changes to this observable. Optionally only listen x times. The lambda receives the changed value when the change occurs, which may be null,