Table of Contents

Method Send

Namespace
SodaFlow
Assembly
SodaFlow.dll

Send<T>(BehaviorSink<T>, T)

Send a value, modifying the value of the behavior. 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.

public static void Send<T>(this BehaviorSink<T> b, T a)

Parameters

b BehaviorSink<T>

The behavior sink.

a T

The value to send.

Type Parameters

T

The type of the behavior sink.