View Source GracefulGenServer.Functions (Graceful GenServer v0.1.0)
Link to this section Summary
Link to this section Functions
Handle info message.
Keyword options:
:on_msg
- optional callback invoked when message is received.on_msg(msg, state)
. Should returnhandle_info
result.:on_exit
- optional callback invoked when process exits.on_exit(reason, state)
:as
- optional name, triggering logging
This function initiates genserver.
Keyword options:
:do
- callback invoked with init args. Should return init state:as
- optional name, triggering logging
Termination handler.
Keyword options:
:on_exit
- optional callback invoked when process exits.on_exit(reason, state)
:as
- optional name, triggering logging