Documentation / dataflow-async / com.femastudios.dataflow.async.util / transformSync
Go to reference
Go to reference
transformSync
fun <I, O> transformSync(f1: Attribute<I>, transformer: WorkContext.(I) -> O): RecomputableAttribute<O>
See Also
inline fun <I1, I2, O> transformSync(f1: Attribute<I1>, f2: Attribute<I2>, crossinline transformer: WorkContext.(I1, I2) -> O): RecomputableAttribute<O>
inline fun <I1, I2, I3, O> transformSync(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, crossinline transformer: WorkContext.(I1, I2, I3) -> O): RecomputableAttribute<O>
inline fun <I1, I2, I3, I4, O> transformSync(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, crossinline transformer: WorkContext.(I1, I2, I3, I4) -> O): RecomputableAttribute<O>
inline fun <I1, I2, I3, I4, I5, O> transformSync(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5) -> O): RecomputableAttribute<O>
inline fun <I1, I2, I3, I4, I5, I6, O> transformSync(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, f6: Attribute<I6>, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5, I6) -> O): RecomputableAttribute<O>
inline fun <I1, I2, I3, I4, I5, I6, I7, O> transformSync(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, f6: Attribute<I6>, f7: Attribute<I7>, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5, I6, I7) -> O): RecomputableAttribute<O>
inline fun <I1, I2, I3, I4, I5, I6, I7, I8, O> transformSync(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, f6: Attribute<I6>, f7: Attribute<I7>, f8: Attribute<I8>, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5, I6, I7, I8) -> O): RecomputableAttribute<O>
inline fun <I1, I2, I3, I4, I5, I6, I7, I8, I9, O> transformSync(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, f6: Attribute<I6>, f7: Attribute<I7>, f8: Attribute<I8>, f9: Attribute<I9>, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5, I6, I7, I8, I9) -> O): RecomputableAttribute<O>
inline fun <I1, I2, I3, I4, I5, I6, I7, I8, I9, I10, O> transformSync(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, f6: Attribute<I6>, f7: Attribute<I7>, f8: Attribute<I8>, f9: Attribute<I9>, f10: Attribute<I10>, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5, I6, I7, I8, I9, I10) -> O): RecomputableAttribute<O>
inline fun <I, O> transformSync(attributes: List<Attribute<I>>, crossinline transformer: WorkContext.(List<I>) -> O): RecomputableAttribute<O>
inline fun <I, O> transformSync(attributes: Array<Attribute<I>>, crossinline transformer: WorkContext.(List<I>) -> O): RecomputableAttribute<O>
Returns an Attribute whose value is the value of the given attributes, transformed according to the given transformer.
When the value of one of the attributes changes, the returned Attribute will change accordingly.
The flow strategy is FlowStrategy.SYNCHRONOUS
See Also