Class BehaviorSinkExtensionMethods
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
The operations available on a BehaviorSink<T>.
[PublicAPI]
public static class BehaviorSinkExtensionMethods
- Inheritance
-
BehaviorSinkExtensionMethods
- Inherited Members
Remarks
A behavior 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
- AsBehavior<T>(BehaviorSink<T>)
Return a reference to this BehaviorSink<T> as a Behavior<T>.
- 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.