Kvasir.Agent.Registry behaviour (kvasir_agent v0.0.13) View Source

Link to this section Summary

Link to this section Callbacks

Link to this callback

start_child(agent, partition, id)

View Source

Specs

start_child(agent :: module(), partition :: non_neg_integer(), id :: term()) ::
  {:ok, pid()} | {:error, atom()}
Link to this callback

start_child(agent, partition, id, offset, state, cache)

View Source

Specs

start_child(
  agent :: module(),
  partition :: non_neg_integer(),
  id :: term(),
  offset :: Kvasir.Offset.t(),
  state :: term(),
  cache :: term()
) :: {:ok, pid()} | {:error, atom()}