Flexflow.ProcessManager (flexflow v0.2.0) View Source

ProcessManager

Link to this section Summary

Link to this section Types

Specs

server_return() :: {:ok, pid()} | {:error, term()}

Specs

t() :: %Flexflow.ProcessManager{
  id: Flexflow.id(),
  name: Flexflow.name(),
  pid: pid(),
  state: Flexflow.state_key()
}

Link to this section Functions

Specs

child_pid(Flexflow.process_key()) :: nil | pid()

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

children(module()) :: [t()]
Link to this function

server(arg, opts \\ %{})

View Source

Specs

Specs

server_pid(module()) :: {:ok, pid()} | {:error, term()}

Specs

start_child(Flexflow.process_key(), Flexflow.process_args()) ::
  {:ok, pid()} | {:error, term()}
Link to this function

stop_child(srv \\ nil, key)

View Source

Specs

stop_child(pid() | module() | nil, Flexflow.process_identity()) ::
  :ok | {:error, term()}