Flexflow.Event behaviour (flexflow v0.1.8) View Source
Event
Link to this section Summary
Link to this section Types
Specs
Specs
edge() :: {Flexflow.identity(), Flexflow.identity()}
Specs
kind() :: :start | :end | :intermediate
Specs
options() :: Keyword.t()
Specs
state() :: :error | :pending | :completed | :ready | :initial | :created
Event state
[:created, :initial, :ready, :completed, :pending, :error]
Specs
t() :: %Flexflow.Event{ __async__: Keyword.t() | false, __context__: Flexflow.Context.t(), __graphviz__: Keyword.t(), __in_edges__: [edge()], __opts__: options(), __out_edges__: [edge()], kind: kind(), module: module(), name: Flexflow.name(), state: state() }
Link to this section Functions
Specs
callback(Flexflow.identity(), Flexflow.Process.t(), :ok | :error, term()) :: Flexflow.Process.result()
Specs
change(state(), t(), Flexflow.Process.t()) :: {:ok, Flexflow.Process.t()} | {:error, term()}
Specs
Specs
init(Flexflow.Process.t()) :: Flexflow.Process.t() | {:error, term()}
Specs
key(t()) :: Flexflow.identity()
Specs
new({Flexflow.identity_or_module(), options()}) :: t()
Specs
Specs
Link to this section Callbacks
Specs
before_change({state(), state()}, t(), Flexflow.Process.t()) :: before_change_result()
Invoked before event state changes
Specs
name() :: Flexflow.name()
Module name