StreamBuilder
[<Class>]
type StreamBuilder =
new () : StreamBuilder
member inline cancellationToken: StreamCancellationToken
member inline Bind<'Leaf, 'Phase, 'T> (_token: StreamCancellationToken, continuation: CancellationToken -> StreamStep<'Leaf,'Phase,'T>) : StreamStep<'Leaf,'Phase,'T>
member inline Bind<'S, 'K, 'Key, 'T when 'S :> IReactive<'K>> (source: 'S, continuation: 'K -> StreamStep<IsLeaf,ColdPhase,'T>) : StreamStep<NotLeaf<'Key>,BoundPhase,'T>
member inline BindReturn<'T, 'Leaf, 'Phase> (_token: StreamCancellationToken, f: CancellationToken -> StreamSource<'T>) : StreamStep<'Leaf,'Phase,'T>
member inline BindReturn<'S, 'K, 'Key, 'T when 'S :> IReactive<'K>> (source: 'S, f: 'K -> StreamSource<'T>) : StreamStep<NotLeaf<'Key>,BoundPhase,'T>
member inline Clock<'Mode> (header: StreamHeader<'Mode,TimedSpec<NoClock>>, clock: TimedClock) : StreamHeader<'Mode,TimedSpec<HasClock>>
member inline Combine<'P1, 'P2, 'T, 'OutLeaf, 'OutPhase> (first: StreamStep<IsLeaf,'P1,unit>, second: unit -> StreamStep<IsLeaf,'P2,'T>) : StreamStep<'OutLeaf,'OutPhase,'T>
member inline Debounce<'Mode> (header: StreamHeader<'Mode,NoTiming>, delay: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>
member inline Delay<'T> (f: unit -> 'T) : unit -> 'T
member inline Fold<'Timing, 'S, 'T> (header: StreamHeader<LatestMode,'Timing>, seed: 'S, folder: 'S -> 'T -> 'S) : StreamHeader<FoldMode<'S,'T>,'Timing>
member inline For<'TItem, 'P, 'OutLeaf, 'OutPhase> (sequence: 'TItem seq, body: 'TItem -> StreamStep<IsLeaf,'P,unit>) : StreamStep<'OutLeaf,'OutPhase,unit>
member inline For<'Mode, 'Timing, 'Leaf, 'Phase, 'T> (header: StreamHeader<'Mode,'Timing>, body: unit -> StreamStep<'Leaf,'Phase,'T>) : ConfiguredStream<'Mode,'Timing,'Leaf,'Phase,'T>
member inline MergeSources<'A, 'B> (source1: Memo<'A>, source2: Memo<'B>) : MergedMemos<'A,'B>
member inline MergeSources<'A, 'B> (source1: Signal<'A>, source2: Signal<'B>) : MergedSignals<'A,'B>
member inline Return<'T, 'Leaf, 'Phase> (source: StreamSource<'T>) : StreamStep<'Leaf,'Phase,'T>
member inline ReturnFrom<'T, 'Leaf, 'Phase> (source: StreamSource<'T>) : StreamStep<'Leaf,'Phase,'T>
member inline Run<'Mode, 'Clk, 'Leaf, 'T> (_d: unit -> ConfiguredStream<'Mode,TimedSpec<'Clk>,'Leaf,ColdPhase,'T>) : StreamMemo<'T>
member inline Run<'S, 'T, 'Leaf> (d: unit -> ConfiguredStream<FoldMode<'S,'T>,NoTiming,'Leaf,ColdPhase,'T>) : StreamMemo<'S>
member inline Run<'Leaf, 'T> (d: unit -> ConfiguredStream<LatestMode,NoTiming,'Leaf,ColdPhase,'T>) : StreamMemo<'T>
member inline Run<'Leaf, 'T> (d: unit -> StreamStep<'Leaf,ColdPhase,'T>) : StreamMemo<'T>
member inline Throttle<'Mode> (header: StreamHeader<'Mode,NoTiming>, interval: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>
member inline ThrottleFirst<'Mode> (header: StreamHeader<'Mode,NoTiming>, interval: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>
member inline ThrottleLast<'Mode> (header: StreamHeader<'Mode,NoTiming>, interval: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>
member inline TryFinally<'P, 'T, 'OutLeaf, 'OutPhase> (body: unit -> StreamStep<IsLeaf,'P,'T>, compensation: unit -> unit) : StreamStep<'OutLeaf,'OutPhase,'T>
member inline TryWith<'P1, 'T, 'P2, 'OutLeaf, 'OutPhase> (body: unit -> StreamStep<IsLeaf,'P1,'T>, handler: exn -> StreamStep<IsLeaf,'P2,'T>) : StreamStep<'OutLeaf,'OutPhase,'T>
member inline Using<'D, 'P, 'T, 'OutLeaf, 'OutPhase when 'D :> IDisposable> (resource: 'D, body: 'D -> StreamStep<IsLeaf,'P,'T>) : StreamStep<'OutLeaf,'OutPhase,'T>
member inline While<'P, 'OutLeaf, 'OutPhase> (guard: unit -> bool, body: unit -> StreamStep<IsLeaf,'P,unit>) : StreamStep<'OutLeaf,'OutPhase,unit>
member inline Yield () : StreamHeader<LatestMode,NoTiming>
member inline Zero<'Leaf, 'Phase> () : StreamStep<'Leaf,'Phase,unit>| Assembly | Ranvier |
| Attributes | [<Sealed>] |
Two-phase computation expression builder producing StreamMemo<'U> nodes.
Phase-1 let! ... and! ... reactive binds compile to static StreamMemo.CreateOn/CreateFoldOn in O(1) without graph.Activate (), running Phase-2 stream setup untracked. Supports fold and debounce/throttle* headers.
Constructors
new () : StreamBuilderProperties
member inline cancellationToken: StreamCancellationToken
member inline cancellationToken: StreamCancellationTokenContext token bound via let! ct = stream.cancellationToken for the stream run CancellationToken.
Methods
member inline Bind<'Leaf, 'Phase, 'T> (_token: StreamCancellationToken, continuation: CancellationToken -> StreamStep<'Leaf,'Phase,'T>) : StreamStep<'Leaf,'Phase,'T>member inline Bind<'S, 'K, 'Key, 'T when 'S :> IReactive<'K>> (source: 'S, continuation: 'K -> StreamStep<IsLeaf,ColdPhase,'T>) : StreamStep<NotLeaf<'Key>,BoundPhase,'T>member inline BindReturn<'T, 'Leaf, 'Phase> (_token: StreamCancellationToken, f: CancellationToken -> StreamSource<'T>) : StreamStep<'Leaf,'Phase,'T>member inline BindReturn<'S, 'K, 'Key, 'T when 'S :> IReactive<'K>> (source: 'S, f: 'K -> StreamSource<'T>) : StreamStep<NotLeaf<'Key>,BoundPhase,'T>member inline Clock<'Mode> (header: StreamHeader<'Mode,TimedSpec<NoClock>>, clock: TimedClock) : StreamHeader<'Mode,TimedSpec<HasClock>>
member inline Clock<'Mode> (header: StreamHeader<'Mode,TimedSpec<NoClock>>, clock: TimedClock) : StreamHeader<'Mode,TimedSpec<HasClock>>Overrides the TimedClock used by the Phase-1 timing gate.
member inline Combine<'P1, 'P2, 'T, 'OutLeaf, 'OutPhase> (first: StreamStep<IsLeaf,'P1,unit>, second: unit -> StreamStep<IsLeaf,'P2,'T>) : StreamStep<'OutLeaf,'OutPhase,'T>member inline Debounce<'Mode> (header: StreamHeader<'Mode,NoTiming>, delay: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>
member inline Debounce<'Mode> (header: StreamHeader<'Mode,NoTiming>, delay: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>Debounces the Phase-1 reactive key by delay before starting stream subscriptions.
member inline Fold<'Timing, 'S, 'T> (header: StreamHeader<LatestMode,'Timing>, seed: 'S, folder: 'S -> 'T -> 'S) : StreamHeader<FoldMode<'S,'T>,'Timing>
member inline Fold<'Timing, 'S, 'T> (header: StreamHeader<LatestMode,'Timing>, seed: 'S, folder: 'S -> 'T -> 'S) : StreamHeader<FoldMode<'S,'T>,'Timing>Accumulates incoming stream items onto seed using folder, starting from seed on each stream restart.
member inline For<'TItem, 'P, 'OutLeaf, 'OutPhase> (sequence: 'TItem seq, body: 'TItem -> StreamStep<IsLeaf,'P,unit>) : StreamStep<'OutLeaf,'OutPhase,unit>member inline For<'Mode, 'Timing, 'Leaf, 'Phase, 'T> (header: StreamHeader<'Mode,'Timing>, body: unit -> StreamStep<'Leaf,'Phase,'T>) : ConfiguredStream<'Mode,'Timing,'Leaf,'Phase,'T>member inline MergeSources<'A, 'B> (source1: Memo<'A>, source2: Memo<'B>) : MergedMemos<'A,'B>member inline MergeSources<'A, 'B> (source1: Signal<'A>, source2: Signal<'B>) : MergedSignals<'A,'B>member inline Return<'T, 'Leaf, 'Phase> (source: StreamSource<'T>) : StreamStep<'Leaf,'Phase,'T>member inline ReturnFrom<'T, 'Leaf, 'Phase> (source: StreamSource<'T>) : StreamStep<'Leaf,'Phase,'T>member inline Run<'Mode, 'Clk, 'Leaf, 'T> (_d: unit -> ConfiguredStream<'Mode,TimedSpec<'Clk>,'Leaf,ColdPhase,'T>) : StreamMemo<'T>member inline Run<'S, 'T, 'Leaf> (d: unit -> ConfiguredStream<FoldMode<'S,'T>,NoTiming,'Leaf,ColdPhase,'T>) : StreamMemo<'S>member inline Run<'Leaf, 'T> (d: unit -> ConfiguredStream<LatestMode,NoTiming,'Leaf,ColdPhase,'T>) : StreamMemo<'T>member inline Run<'Leaf, 'T> (d: unit -> StreamStep<'Leaf,ColdPhase,'T>) : StreamMemo<'T>member inline Throttle<'Mode> (header: StreamHeader<'Mode,NoTiming>, interval: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>
member inline Throttle<'Mode> (header: StreamHeader<'Mode,NoTiming>, interval: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>Throttles the Phase-1 reactive key by interval (leading + trailing) before starting stream subscriptions.
member inline ThrottleFirst<'Mode> (header: StreamHeader<'Mode,NoTiming>, interval: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>
member inline ThrottleFirst<'Mode> (header: StreamHeader<'Mode,NoTiming>, interval: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>Throttles the Phase-1 reactive key by interval (leading edge only) before starting stream subscriptions.
member inline ThrottleLast<'Mode> (header: StreamHeader<'Mode,NoTiming>, interval: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>
member inline ThrottleLast<'Mode> (header: StreamHeader<'Mode,NoTiming>, interval: TimeSpan) : StreamHeader<'Mode,TimedSpec<NoClock>>Throttles the Phase-1 reactive key by interval (trailing edge only) before starting stream subscriptions.
member inline TryFinally<'P, 'T, 'OutLeaf, 'OutPhase> (body: unit -> StreamStep<IsLeaf,'P,'T>, compensation: unit -> unit) : StreamStep<'OutLeaf,'OutPhase,'T>member inline TryWith<'P1, 'T, 'P2, 'OutLeaf, 'OutPhase> (body: unit -> StreamStep<IsLeaf,'P1,'T>, handler: exn -> StreamStep<IsLeaf,'P2,'T>) : StreamStep<'OutLeaf,'OutPhase,'T>member inline Using<'D, 'P, 'T, 'OutLeaf, 'OutPhase when 'D :> IDisposable> (resource: 'D, body: 'D -> StreamStep<IsLeaf,'P,'T>) : StreamStep<'OutLeaf,'OutPhase,'T>member inline While<'P, 'OutLeaf, 'OutPhase> (guard: unit -> bool, body: unit -> StreamStep<IsLeaf,'P,unit>) : StreamStep<'OutLeaf,'OutPhase,unit>member inline Yield () : StreamHeader<LatestMode,NoTiming>member inline Zero<'Leaf, 'Phase> () : StreamStep<'Leaf,'Phase,unit>