Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / currentValueOr
Go to reference

currentValueOr

fun <T> Attribute<T>.currentValueOr(valueWhenNotLoaded: T): T

Returns the current value of this Attribute if it is loaded, or valueWhenNotLoaded


inline fun <T> Attribute<T>.currentValueOr(crossinline valueWhenNotLoaded: (NotLoaded<T>) -> T): T

Returns the current value of this Attribute if it is loaded, or what valueWhenNotLoaded returns