Flexflow.Transition behaviour (flexflow v0.1.6) View Source
Transition
Link to this section Summary
Link to this section Types
Specs
option() :: {:async, boolean()}
async-Flexflow.Event.option/0
Specs
options() :: [option()]
Specs
state()
Transition state
[:created, :initial]
Specs
t() :: %Flexflow.Transition{
__context__: Flexflow.Context.t(),
__graphviz__: keyword(),
__opts__: options(),
from: Flexflow.key_normalize(),
module: module(),
name: Flexflow.name(),
state: state(),
to: Flexflow.key_normalize()
}
Link to this section Functions
Specs
dispatch(
{Flexflow.Event.t(), t(), Flexflow.Event.t()},
Flexflow.Process.result()
) :: Flexflow.Process.result()
Specs
key(t()) :: Flexflow.key_normalize()
Specs
new({Flexflow.key(), {Flexflow.key(), Flexflow.key()}, options()}, [
Flexflow.Event.t()
]) :: t()
Specs
Link to this section Callbacks
Specs
init(t(), Flexflow.Process.t()) :: {:ok, t()}
Invoked when process is started
Specs
name() :: Flexflow.name()
Module name