Method SampleLazy
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
SampleLazy<T>(Cell<T>)
Sample the current value of the cell lazily.
public static Lazy<T> SampleLazy<T>(this Cell<T> c)
Parameters
cCell<T>The cell.
Returns
- Lazy<T>
A lazy value that gives the current value of the cell.
Type Parameters
TThe type of the cell.
Remarks
This is a variant of Sample<T>(Cell<T>) that works with the CellLoop<T> class when no code closed the cell loop. Use it in code that is general sufficient for a CellLoop<T> argument. See HoldLazy<T>(Stream<T>, Lazy<T>).