Method Calm
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
Calm<T>(Cell<T>)
Return a cell whose stream only receives events which have a different value than the previous event.
public static Cell<T> Calm<T>(this Cell<T> c)
Parameters
cCell<T>The cell.
Returns
- Cell<T>
A cell whose stream only receives events which have a different value than the previous event.
Type Parameters
TThe type of the cell.
Calm<T>(Cell<T>, IEqualityComparer<T>)
Return a cell whose stream only receives events which have a different value than the previous event.
public static Cell<T> Calm<T>(this Cell<T> c, IEqualityComparer<T> comparer)
Parameters
cCell<T>The cell.
comparerIEqualityComparer<T>The equality comparer that gives true when two items are equal.
Returns
- Cell<T>
A cell whose stream only receives events which have a different value than the previous event.
Type Parameters
TThe type of the cell.
Calm<T>(Cell<T>, Func<T, T, bool>)
Return a cell whose stream only receives events which have a different value than the previous event.
public static Cell<T> Calm<T>(this Cell<T> c, Func<T, T, bool> areEqual)
Parameters
cCell<T>The cell.
areEqualFunc<T, T, bool>The function that gives true when two items are equal.
Returns
- Cell<T>
A cell whose stream only receives events which have a different value than the previous event.
Type Parameters
TThe type of the cell.