TransAlt


StateKeeper<'s>

abstract state keeper

Instance members

Instance memberDescription
Apply(arg1, arg2)
Signature: (ProcessId * StateOp<'s,'r>) -> Async<StateResp<'r>>
Modifiers: abstract

Apply some state operation to a state

GetProcessId(arg1)
Signature: IsMutatesState -> Async<ProcessId>
Modifiers: abstract

get id for a new process

InitValue
Signature: 's
Modifiers: abstract

initial state

IsNotChanged
Signature: bool
Modifiers: abstract

is state changed

IsThreadSafe
Signature: bool
Modifiers: abstract

is thread safe state keeper

Merge(arg1)
Signature: StateKeeper<'s> -> Async<StateResp<unit>>
Modifiers: abstract

replace current state with another

MergeLens(arg1 arg2)
Signature: Lens<'s,'r> -> StateKeeper<'r> -> Async<StateResp<unit>>
Modifiers: abstract

replace part of state specified by a lens by another state

ReleaseProcessId(arg1)
Signature: ProcessId -> unit
Modifiers: abstract

process are stopping and signals that process id is not working anymore

RunningProcsCountExcludeMe(arg1)
Signature: ProcessId -> Async<int>
Modifiers: abstract

count of running not blocked processes exclude specifier procId

Stop()
Signature: unit -> unit
Modifiers: abstract

stop

Value
Signature: 's
Modifiers: abstract

current state

Fork me on GitHub