Class StreamSinkExtensionMethods
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
The operations available on a StreamSink<T>.
[PublicAPI]
public static class StreamSinkExtensionMethods
- Inheritance
-
StreamSinkExtensionMethods
- Inherited Members
Remarks
A stream sink puts an event 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
- AsStream<T>(StreamSink<T>)
Return a reference to this StreamSink<T> as a Stream<T>.
- Send<T>(StreamSink<T>, T)
Send a value. 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.