WaitEvaluator
Overview
Type: type
Type definition of the evaluator function that is used in the .wait
method of all State Managers.
This should be a pure function.
type WaitEvaluator<State> = (currentState: State, defaultState: State, eventType: StateChangeEventType | null) => boolean
note
If the condition is already fulfilled at time of invocation, eventType
will be null
.