View Source
GracefulGenServer behaviour
(Graceful GenServer v0.1.0)
Handles init and terminate
@callback on_exit(reason :: any(), state :: any()) :: any()
@callback on_init(args :: any()) :: any()
@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()