jhn_elixir v0.1.4 JhnElixir.Managed

Link to this section Summary

Link to this section Types

Link to this type

on_start()

on_start() ::
  {:ok, pid()} | :ignore | {:error, {:already_started, pid()} | term()}
Link to this type

option()

option() :: {:name, atom()} | {:hibernate_after, timeout()}

Link to this section Functions

Link to this function

add(managed, id, init_data)

add(atom(), term(), term()) :: {:ok, pid()} | {:error, term()}
Link to this function

child_spec(init_arg)

Callback implementation for JhnElixir.Supervisor.init/1.

Link to this function

lookup(managed, id)

lookup(atom(), term()) :: {:ok, pid()} | nil
Link to this function

remove(managed, id)

remove(atom(), term()) :: :ok | {:error, term()}
Link to this function

start(module, options \\ [])

start(module(), [option()]) :: on_start()