Gjallarhorn.Bindable


Executor<'Model, 'Msg>

Namespace: Gjallarhorn.Bindable

Manages the execution of an operation that produces messages to be dispatched. Constructed from a startup function and (optionally) a subscription which returns a bool for whether we should execute on model changes

Constructors

ConstructorDescription
new(startExecuting, subscription)
Signature: (startExecuting:(Dispatch<'Msg> -> CancellationToken -> unit) * subscription:('Model -> bool) option) -> Executor<'Model,'Msg>

CompiledName: .ctor

Instance members

Instance memberDescription
Executing()
Signature: unit -> bool

Used to watch our execution status

CompiledName: set_Executing

Executing()
Signature: unit -> unit

Used to watch our execution status

CompiledName: get_Executing

Start()
Signature: unit -> unit

Attempt to start the operation

Stop()
Signature: unit -> unit

Attempt to stop the operation

Fork me on GitHub