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

NameSignatureSynopsis
Operations
startElmishRuntime.start options environmentStarts a runtime around a caller-supplied environment.
startLayerElmishRuntime.startLayer options layer inputStarts a runtime by provisioning a layer inside the runtime's root scope.
startServiceElmishRuntime.startService name service runtimeStarts a long-lived service flow owned by the runtime, outside the Elmish program.
testElmishRuntime.test clock environmentCreates a runtime with queued dispatch and captured defects for tests.
Stopthis.StopNo description available.
StopAndWaitthis.StopAndWaitNo description available.
Environmentthis.EnvironmentNo description available.
Registrythis.RegistryNo description available.

Operations

kind:member

start

ElmishRuntime.start options environment
Member
Starts a runtime around a caller-supplied environment.

Parameters

NameTypeDescription
optionsElmishRuntimeOptionsHost delivery and diagnostic policy.
environment'envThe application dependencies every command runs with.

Returns

ElmishRuntime<'env>
kind:member

startLayer

ElmishRuntime.startLayer options layer input
Member
Starts a runtime by provisioning a layer inside the runtime's root scope.

Parameters

NameTypeDescription
optionsElmishRuntimeOptionsHost delivery and diagnostic policy.
layerLayer<'input, 'error, 'env>The layer that builds the runtime's environment.
input'inputThe input environment required to build the layer.

Returns

Async<Result<ElmishRuntime<'env>, 'error>>
kind:member

startService

ElmishRuntime.startService name service runtime
Member
Starts a long-lived service flow owned by the runtime, outside the Elmish program.

Parameters

NameTypeDescription
namestringThe service fiber's diagnostic name; one running service per name.
serviceFlow<'env, Never, unit>The Flow<'env, Never, unit> to run for the program's lifetime.
runtimeElmishRuntime<'env>The runtime that owns the service.

Returns

Result<unit, ServiceStartError>
kind:member

test

ElmishRuntime.test clock environment
Member
Creates a runtime with queued dispatch and captured defects for tests.

Parameters

NameTypeDescription
clockManualClock
environment'env

Returns

TestRuntime<'env>
kind:member

Stop

this.Stop
Member

Returns

Async<unit>
kind:member

StopAndWait

this.StopAndWait
Member

Parameters

NameTypeDescription
timeoutTimeSpan

Returns

bool
kind:member

Environment

this.Environment
Member

Returns

'env
kind:member

Registry

this.Registry
Member

Returns

FiberRegistry