Packages
Library for managing stateful interaction and side-effects with state machines and statecharts.
Current section
Files
Jump to
Current section
Files
lib/protean/action/protocol/executable.ex
defprotocol Protean.Action.Protocol.Executable do
@moduledoc """
The `Executable` protocol defines `exec/2`, which is used to execute a
resolved action that has been bound to a specific context and potentially
modify an interpreter.
"""
alias Protean.{Action, Machine, Interpreter}
@spec exec(Action.resolved(), Machine.context(), Interpreter.t()) :: Interpreter.t()
def exec(action, context, interpreter)
end