diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2011-02-12 15:26:31 +0000 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-02-12 15:26:31 +0000 |
| commit | d7b850ed5013f566fe0b43947c38d50b43b4bbc3 (patch) | |
| tree | b50b682cade7b838ed8bf000748beffcede589bf | |
| parent | 608549f7e76a60b9f9448b4ca9b77157955f98ee (diff) | |
| download | rabbitmq-server-git-d7b850ed5013f566fe0b43947c38d50b43b4bbc3.tar.gz | |
Added documentation
| -rw-r--r-- | src/gen_server2.erl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gen_server2.erl b/src/gen_server2.erl index 75d7ee8c71..94296f9751 100644 --- a/src/gen_server2.erl +++ b/src/gen_server2.erl @@ -58,6 +58,15 @@ %% hibernate the process immediately, as it would if backoff wasn't %% being used. Instead it'll wait for the current timeout as described %% above. +%% +%% 7) The callback module can return from any of the handle_* +%% functions, a {become, Module, State} triple, or a {become, Module, +%% State, Timeout} quadruple. This allows the gen_server to +%% dynamically change the callback module. The State is the new state +%% which will be passed into any of the callback functions in the new +%% module. Note there is no form also encompassing a reply, thus if +%% you wish to reply in handle_call/3 and change the callback module, +%% you need to use gen_server2:reply/2 to issue the reply manually. %% All modifications are (C) 2009-2011 VMware, Inc. |
