View Source GracefulGenServer behaviour (Graceful GenServer v0.1.0)

Handles init and terminate

Link to this section Summary

Link to this section Callbacks

@callback on_exit(reason :: any(), state :: any()) :: any()
@callback on_init(args :: any()) :: any()
Link to this callback

on_msg(msg, state)

View Source (optional)
@callback on_msg(msg :: any(), state :: any()) ::
  {:noreply, new_state}
  | {:noreply, new_state,
     timeout() | :hibernate | {:continue, continue_arg :: term()}}
  | {:stop, reason :: term(), new_state}
when new_state: term()