Table of Contents

Class CellSinkExtensionMethods

Namespace
SodaFlow
Assembly
SodaFlow.dll

The operations available on a CellSink<T>.

[PublicAPI]
public static class CellSinkExtensionMethods
Inheritance
CellSinkExtensionMethods
Inherited Members

Remarks

A cell sink puts a value from other code into the FRP graph. These operations are for interfacing I/O to FRP only, and throw if called in a listener handler.

Methods

AsCell<T>(CellSink<T>)

Return a reference to this CellSink<T> as a Cell<T>.

Send<T>(CellSink<T>, T)

Send a value, modifying the value of the cell. A caller must not call this method in a handler registered with Listen<T>(Stream<T>, Action<T>), ListenStrong<T>(Stream<T>, Action<T>) or one of their cell equivalents. An exception will be thrown, because sinks are for interfacing I/O to FRP only. They are not for the definition of a new primitive.