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

Link to this section Summary

Link to this section Callbacks

Link to this callback

start_child(agent, partition, id)

View Source
@callback 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
@callback start_child(
  agent :: module(),
  partition :: non_neg_integer(),
  id :: term(),
  offset :: Kvasir.Offset.t(),
  state :: term(),
  cache :: term()
) :: {:ok, pid()} | {:error, atom()}