OfFlowStreamModule
PackageAxial.ElmishFlows
Elmish commands that dispatch every element of an Axial stream.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| latest | latest key runtime stream onElement onError | 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. |
Operations
kind: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
| Name | Type | Description |
|---|---|---|
| key | string | The latest-wins key, also the diagnostic name of the stream fiber. |
| runtime | ElmishRuntime<'env> | The runtime that owns the stream's root scope. |
| stream | FlowStream<'env, 'error, 'value> | The stream to run, passed positionally. |
| onElement | 'value -> 'msg | Maps each element to a message. |
| onError | 'error -> 'msg | Maps the stream's typed failure to a message. |
Returns
Cmd<'msg>

