OfFlowStreamModule

PackageAxial.ElmishFlows
Elmish commands that dispatch every element of an Axial stream.

Summary

NameSignatureSynopsis
Operations
latestlatest key runtime stream onElement onErrorRuns a stream keyed by key and dispatches each element as a message; starting another stream or Cmd.OfFlow.Latest command for the same key interrupts this one.

Operations

kind:member

latest

latest key runtime stream onElement onError
Member
Runs a stream keyed by key and dispatches each element as a message; starting another stream or Cmd.OfFlow.Latest command for the same key interrupts this one.

Parameters

NameTypeDescription
keystringThe latest-wins key, also the diagnostic name of the stream fiber.
runtimeElmishRuntime<'env>The runtime that owns the stream's root scope.
streamFlowStream<'env, 'error, 'value>The stream to run, passed positionally.
onElement'value -> 'msgMaps each element to a message.
onError'error -> 'msgMaps the stream's typed failure to a message.

Returns

Cmd<'msg>