Method Gate
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
Gate<T>(Stream<T>, Cell<bool>)
Return a stream that only outputs events from the input stream when the
specified cell's value is
<pre><code class="lang-csharp">true</code></pre>
.
public static Stream<T> Gate<T>(this Stream<T> s, Cell<bool> c)
Parameters
Returns
- Stream<T>
A stream that only outputs events from the input stream when the specified cell's value is <pre><code class="lang-csharp">true</code></pre>.
Type Parameters
TThe type of the stream.
Gate<T>(Stream<T>, Behavior<bool>)
Return a stream that only outputs events from the input stream when the specified behavior's value is
true
.
public static Stream<T> Gate<T>(this Stream<T> s, Behavior<bool> b)
Parameters
Returns
- Stream<T>
A stream that only outputs events from the input stream when the specified behavior's value is <pre><code class="lang-csharp">true</code></pre>.
Type Parameters
TThe type of the stream.