Flexflow.Event behaviour (flexflow v0.1.6) View Source
Event
Link to this section Summary
Link to this section Types
Specs
edge() :: {Flexflow.key_normalize(), Flexflow.key_normalize()}
Specs
kind() :: :start | :end | :intermediate
Specs
option() :: {:async, boolean()}
async- invoke using a separated task (except init callback), defaultfalse
Specs
options() :: [option()]
Specs
state()
Event state
[:created, :initial, :ready, :completed]
Specs
t() :: %Flexflow.Event{
__context__: Flexflow.Context.t(),
__graphviz__: keyword(),
__in_edges__: [edge()],
__opts__: options(),
__out_edges__: [edge()],
kind: kind(),
module: module(),
name: Flexflow.name(),
state: state()
}
Link to this section Functions
Specs
Specs
Specs
key(t()) :: Flexflow.key_normalize()
Specs
new({Flexflow.key(), options()}) :: t()
Specs
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