tornadofx / tornadofx / javafx.beans.value.ObservableValue / awaitUntil

awaitUntil

fun <T> ObservableValue<T>.awaitUntil(condition: (T) -> Boolean): Unit

Wait on the UI thread until a certain value is available on this observable.

This method does not block the UI thread even though it halts further execution until the condition is met.

fun ObservableValue<Boolean>.awaitUntil(): Unit

Wait on the UI thread until this observable value is true.

This method does not block the UI thread even though it halts further execution until the condition is met.