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

Event

Link to this section Summary

Types

  • async - invoke using a separated task (except init callback), default false

Event state

t()

Callbacks

Invoked when process is started

Module name

Link to this section Types

Specs

Specs

kind() :: :start | :end | :intermediate

Specs

option() :: {:async, boolean()}
  • async - invoke using a separated task (except init callback), default false

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

attribute(kind()) :: keyword()

Specs

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

Specs

Specs

new({Flexflow.key(), options()}) :: t()

Specs

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

Specs

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

Link to this section Callbacks

Specs

init(t(), Flexflow.Process.t()) :: {:ok, t()}

Invoked when process is started

Specs

name() :: Flexflow.name()

Module name