StateQuery

typealias StateQuery<C, S> = C.() -> S

This represents an expression to determine the state of the context. This is useful when creating an instance of a statemachine multiple times during the lifecycle of a context represented by a persisted or serializable entity.

Parameters

C

The context:C will be available to the lambda.

S

The type of the state that should be returned by the lambda.