Table of Contents

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

s Stream<T>

The stream.

initialValue T

The initial value of the cell.

Returns

Cell<T>

A cell with the given initial value, which the values of this stream update.

Type Parameters

T

The 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.