Table of Contents

Method CreateStreamSink

Namespace
SodaFlow
Assembly
SodaFlow.dll

CreateStreamSink<T>()

Makes a writable cell stream sink that uses the last value if Send<T>(CellSink<T>, T) gets more than one call in one transaction. A caller holds this stream sink into a Cell<T> with Hold<T>(Stream<T>, T).

public static CellStreamSink<T> CreateStreamSink<T>()

Returns

CellStreamSink<T>

Type Parameters

T

The type of the value in the cell stream sink.

CreateStreamSink<T>(Func<T, T, T>)

Makes a writable cell stream sink that uses coalesce to put values together when Send<T>(StreamSink<T>, T) gets more than one time in each transaction. A caller holds this stream sink into a Cell<T> with the use of Hold<T>(Stream<T>, T).

public static CellStreamSink<T> CreateStreamSink<T>(Func<T, T, T> coalesce)

Parameters

coalesce Func<T, T, T>

Function to put values together when Send<T>(StreamSink<T>, T) gets more than one call in each transaction.

Returns

CellStreamSink<T>

Type Parameters

T

The type of the value in the cell stream sink.