View Source Actors.Actor.StateManager.Behaviour behaviour (spawn v0.1.0)

Link to this section Summary

Link to this section Callbacks

@callback is_new?(String.t(), any()) :: {:error, term()} | boolean()
@callback load(String.t()) :: {:ok, term()} | {:not_found, %{}} | {:error, term()}
@callback save(String.t(), term()) ::
  {:ok, term(), String.t()}
  | {:error, term(), term(), term()}
  | {:error, term(), term()}
Link to this callback

save_async(t, term, integer)

View Source
@callback save_async(String.t(), term(), integer()) ::
  {:ok, term(), String.t()}
  | {:error, term(), term(), term()}
  | {:error, term(), term()}