aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/design_principles/gen_server_concepts.xml
diff options
context:
space:
mode:
authorGabor Liptak <gliptak@users.sourceforge.net>2011-01-29 15:52:39 -0500
committerNiclas Axelsson <burbas@erlang.org>2011-02-25 17:05:43 +0100
commit1fb616dac50969cef3f260ec9d899f2f980fca1d (patch)
treefbe3bb282acefccf736eede6e7219e2c4b3cde83 /system/doc/design_principles/gen_server_concepts.xml
parent059606a330e8e86305699f60de144102560cb57b (diff)
downloadotp-1fb616dac50969cef3f260ec9d899f2f980fca1d.tar.gz
otp-1fb616dac50969cef3f260ec9d899f2f980fca1d.tar.bz2
otp-1fb616dac50969cef3f260ec9d899f2f980fca1d.zip
Update Handling Other Messages section in gen_server, gen_fsm, gen_events overviews
Diffstat (limited to 'system/doc/design_principles/gen_server_concepts.xml')
-rw-r--r--system/doc/design_principles/gen_server_concepts.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/doc/design_principles/gen_server_concepts.xml b/system/doc/design_principles/gen_server_concepts.xml
index 8131c47a69..231333da0e 100644
--- a/system/doc/design_principles/gen_server_concepts.xml
+++ b/system/doc/design_principles/gen_server_concepts.xml
@@ -264,6 +264,11 @@ terminate(normal, State) ->
handle_info({'EXIT', Pid, Reason}, State) ->
..code to handle exits here..
{noreply, State1}.</code>
+ <p>The code_change method also has to be implemented.</p>
+ <code type="none">
+code_change(OldVsn, State, Extra) ->
+ ..code to convert state (and more) during code change
+ {ok, NewState}.</code>
</section>
</chapter>