Method Updates
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
Updates<T>(Behavior<T>)
A stream that gives the updates/steps for a behavior.
public static Stream<T> Updates<T>(Behavior<T> b)
Parameters
bBehavior<T>The behavior to monitor.
Returns
- Stream<T>
A stream which fires the updated value, in the transaction the update happened in. It does not fire for the behavior's initial value.
Type Parameters
TThe type of the values in the behavior.
Remarks
This is an OPERATIONAL primitive, which is not part of the primary SodaFlow API. It breaks the property of non-detectability of behavior steps/updates. The rule with this primitive is to use it only in functions that do not let the caller see the behavior updates.