Table of Contents

Class Behavior

Namespace
SodaFlow
Assembly
SodaFlow.dll

Helper methods for creating a Behavior<T>.

[PublicAPI]
public static class Behavior
Inheritance
Behavior
Inherited Members

Methods

ConstantLazy<T>(Lazy<T>)

Creates a behavior with a lazily computed constant value.

Constant<T>(T)

Creates a behavior with a constant value.

CreateLoop<T>()

Makes a BehaviorLoop<T>. A caller must call this and close the loop in one transaction.

CreateSink<T>(T)

Creates a writable behavior that uses the last value if Send<T>(BehaviorSink<T>, T) gets more than one call per transaction.

CreateSink<T>(T, Func<T, T, T>)

Creates a writable behavior that uses coalesce to put values together when Send<T>(BehaviorSink<T>, T) gets more than one call in one transaction.

Loop<T>()

Creates a helper to loop over a behavior for the specified type.