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

pair

open infix fun <O> pair(another: Attribute<O>): Attribute<Pair<T, O>>

Returns an Attribute<Pair<T, O>> whose first value of the pair is the value of this attribute, and second value of the pair is the value of another. When one of the attributes is in Error the resulting attribute will be in Error, when one of the attributes is in Loading the resulting attribute will be in Loading, when they are both Loaded the resulting attribute will have the specified pair.