Method Hold
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
Hold<T>(Stream<T>, T)
Makes a cell with the given initial value, and the values of this stream update it.
public static Cell<T> Hold<T>(this Stream<T> s, T initialValue)
Parameters
sStream<T>The stream.
initialValueTThe initial value of the cell.
Returns
- Cell<T>
A cell with the given initial value, which the values of this stream update.
Type Parameters
TThe type of the stream.
Remarks
There is an implicit interval. State updates from stream event firings do not become available as the current value of the cell to Snapshot<T, T1, TResult>(Stream<T>, Cell<T1>, Func<T, T1, TResult>) until the next transaction. In different words, Snapshot<T, T1, TResult>(Stream<T>, Cell<T1>, Func<T, T1, TResult>) always sees the value of a cell as it was before any state changes from the current transaction.