Table of Contents

Method SwitchS

Namespace
SodaFlow
Assembly
SodaFlow.dll

SwitchS<T>(Behavior<Stream<T>>)

Unwrap a stream in a behavior to give a time-varying stream implementation. At a change to the behavior, the output stream fires the simultaneous firing, if there is one. That firing comes from the stream that the behavior held at the start of the transaction.

public static Stream<T> SwitchS<T>(this Behavior<Stream<T>> bsa)

Parameters

bsa Behavior<Stream<T>>

The behavior containing the stream.

Returns

Stream<T>

The unwrapped stream.

Type Parameters

T

The type of the stream.