GenServer.format_status
You're seeing just the callback
format_status
, go back to GenServer module for more information.
Specs
Invoked in some cases to retrieve a formatted version of the GenServer
status.
This callback can be useful to control the appearance of the status of the
GenServer
. For example, it can be used to return a compact representation of
the GenServer
's state to avoid having large state terms printed.
one of
:sys.get_status/1
or:sys.get_status/2
is invoked to get the status of theGenServer
; in such cases,reason
is:normal
the
GenServer
terminates abnormally and logs an error; in such cases,reason
is:terminate
pdict_and_state
is a two-elements list [pdict, state]
where pdict
is a
list of {key, value}
tuples representing the current process dictionary of
the GenServer
and state
is the current state of the GenServer
.