View Source Ecspanse.Resource.State (ECSpanse v0.6.0)

A special resource provided by the framework to store a generic state. This is a high level state, with an atom type value.

It is useful in controlling the systems execution. But its use is not mandatory.

The initial state can be set, for example, in a startup system.



@type t() :: %Ecspanse.Resource.State{__meta__: term(), value: atom()}


Callback implementation for Ecspanse.Resource.validate/1.