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

Event

Link to this section Summary

Link to this section Types

Specs

atom_result() :: atom()

Specs

event_result() :: {:ok, atom_result()} | {:error, term()}

Specs

Specs

options() :: Keyword.t()

Specs

t() :: %Flexflow.Event{
  __op__: Flexflow.name(),
  __opts__: options(),
  context: Flexflow.Context.t(),
  from: Flexflow.state_key(),
  module: module(),
  name: Flexflow.name(),
  parent_module: module(),
  results: MapSet.t(atom_result()),
  to: Flexflow.state_key()
}

Link to this section Functions

Link to this section Callbacks

Specs

default_results() :: [atom_result()]

Specs

graphviz_attribute() :: keyword()
Link to this callback

handle_input(term, arg2, arg3)

View Source

Specs

Link to this callback

handle_result(atom_result, arg2, term, arg4, arg5)

View Source

Specs

Specs

Invoked after compile, return :ok if valid

Specs

is_event(term()) :: boolean()

Specs

name() :: Flexflow.name()

Module name

Specs

validate(t(), Flexflow.Process.t()) :: :ok