Flexflow.Event behaviour (flexflow v0.1.8) View Source

Event

Link to this section Summary

Callbacks

Invoked before event state changes

Module name

Link to this section Types

Link to this type

before_change_result()

View Source

Specs

before_change_result() :: :ok | {:ok, t()} | {:ok, term()} | {:error, term()}

Specs

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

Link to this function

callback(arg1, p, atom, reason)

View Source

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

end?(t()) :: boolean()

Specs

init(Flexflow.Process.t()) :: Flexflow.Process.t() | {:error, term()}

Specs

key(t()) :: Flexflow.identity()

Specs

Specs

start?(t()) :: boolean()

Specs

validate([t()]) :: [t()]

Link to this section Callbacks

Link to this callback

before_change({}, t, arg3)

View Source

Specs

before_change({state(), state()}, t(), Flexflow.Process.t()) ::
  before_change_result()

Invoked before event state changes

Specs

name() :: Flexflow.name()

Module name