View Source Protean.Context (Protean v0.1.0-alpha.2)
Snapshot of active states, assigns, and the latest event seen by the machine.
Functions in this module should rarely be used directly. Instead, rely on the API exposed by
Protean
and Protean.Action
to query and modify machine context.
Link to this section Summary
Link to this section Types
@opaque private_state()
@type t() :: %Protean.Context{ assigns: assigns(), event: Protean.event() | nil, final: value(), private: private_state(), value: value() }
@type value() :: MapSet.t(Protean.Node.id())
Link to this section Functions
@spec matches?(t(), Protean.Node.id() | String.t() | atom()) :: boolean()