Umbra v0.0.2 Umbra.GenServer behaviour View Source

Umbra.GenServer

Link to this section Summary

Link to this section Callbacks

Link to this callback

__get_pid__(pid_or_state)

View Source

Specs

__get_pid__(pid_or_state :: struct() | PID.t()) ::
  {:ok, PID.t()} | {:error, any()}
Link to this callback

__get_process_name__(state)

View Source

Specs

__get_process_name__(state :: struct()) :: {:ok, any() | nil} | {:error, any()}
Link to this callback

__start__(linked, state, opts)

View Source

Specs

__start__(linked :: boolean(), state :: struct(), opts :: keyword()) ::
  {:ok, PID.t()} | {:error, any()}