Professional Documents
Culture Documents
CHEATSHEET
Initialization
RETURN VALUES
CALLBACK
Synchronous Operation
!
{:noreply, new_state}!
{:noreply, new_state, 5_000}!
{:noreply, new_state, :hibernate}!
{:stop, reason*, reply, new_state}!
{:stop, reason*, new_state}!
Asynchronous Operation
{:noreply, new_state}!
RETURN VAL
Copyright Benjamin Tan Wei Hao. Free to use without modication for non-commercial applications.
THE GenServer! Version 1.0!
CHEATSHEET
Out of band messages
{:noreply, new_state}!
RETURN VAL
Termination
:normal!
REASON*
:shutdown!
{:shutdown, term}!
term!
Copyright Benjamin Tan Wei Hao. Free to use without modication for non-commercial applications.