Flexflow.Process behaviour (flexflow v0.1.7) View Source
Process
Link to this section Summary
Callbacks
Invoked when process is started, after events and transitions init
, see Flexflow.Api.init/1
Module name
Link to this section Types
Specs
definition() :: {:event | :transition, Flexflow.key_normalize()}
Specs
Init result
Specs
state()
Process state
[:created, :active, :loop, :waiting, :paused]
Specs
t() :: %Flexflow.Process{ __args__: Flexflow.process_args(), __context__: Flexflow.Context.t(), __counter__: integer(), __definitions__: [definition()], __graphviz__: Keyword.t(), __loop__: integer(), __opts__: Keyword.t(), __tasks__: %{required(reference()) => term()}, events: Flexflow.events(), id: Flexflow.id() | nil, module: module(), name: Flexflow.name() | nil, state: state(), transitions: Flexflow.transitions() }
Link to this section Functions
Specs
Specs
Specs
handle_call(t(), term(), GenServer.from() | nil) :: result()
Specs
Specs
Specs
Specs
Specs
new(module(), Flexflow.id(), Flexflow.process_args()) :: result()
Specs
Specs
Link to this section Callbacks
Specs
handle_call(t(), term(), GenServer.from()) :: result()
Specs
Specs
Specs
Invoked when process is started, after events and transitions init
, see Flexflow.Api.init/1
Specs
name() :: Flexflow.name()
Module name