ElmishRuntimeType
PackageAxial.ElmishFlows
Owns the root scope for all commands in one Elmish program.
Specification
Kind
Type
Members
8
Examples
0
startSignature
ElmishRuntime.start options environment
startLayerSignature
ElmishRuntime.startLayer options layer input
startServiceSignature
ElmishRuntime.startService name service runtime
testSignature
ElmishRuntime.test clock environment
StopSignature
this.Stop
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| start | ElmishRuntime.start options environment | Starts a runtime around a caller-supplied environment. |
| startLayer | ElmishRuntime.startLayer options layer input | Starts a runtime by provisioning a layer inside the runtime's root scope. |
| startService | ElmishRuntime.startService name service runtime | Starts a long-lived service flow owned by the runtime, outside the Elmish program. |
| test | ElmishRuntime.test clock environment | Creates a runtime with queued dispatch and captured defects for tests. |
| Stop | this.Stop | No description available. |
| StopAndWait | this.StopAndWait | No description available. |
| Environment | this.Environment | No description available. |
| Registry | this.Registry | No description available. |
Operations
kind:member
kind:member
Starts a runtime by provisioning a layer inside the runtime's root scope.
Parameters
| Name | Type | Description |
|---|---|---|
| options | ElmishRuntimeOptions | Host delivery and diagnostic policy. |
| layer | Layer<'input, 'error, 'env> | The layer that builds the runtime's environment. |
| input | 'input | The input environment required to build the layer. |
Returns
Async<Result<ElmishRuntime<'env>, 'error>>
kind:member
Starts a long-lived service flow owned by the runtime, outside the Elmish program.
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | The service fiber's diagnostic name; one running service per name. |
| service | Flow<'env, Never, unit> | The Flow<'env, Never, unit> to run for the program's lifetime. |
| runtime | ElmishRuntime<'env> | The runtime that owns the service. |
Returns
Result<unit, ServiceStartError>
kind:member

