Documentation / dataflow-async / com.femastudios.dataflow.async / Attribute / delayed
Go to reference

delayed

open fun delayed(delay: Long): TimeShiftedAttribute<T>

Returns a TimeShiftedAttribute whose value is shifted of the given delay milliseconds.


open fun delayed(delay: (delayedValue: AttributeData<T>, newValue: AttributeData<T>) -> Long): TimeShiftedAttribute<T>

Same as Attribute.delayed but the delay is a lambda called each time the attribute changes.