[erlang-questions] gen_server call and reply

Matthias Lang matthias@REDACTED
Sun Sep 16 17:29:59 CEST 2007

Ulf "Gung Ho" Wiger writes:
 > Ah, well, you _can_ do it. Don't pay too much attention to the
 > word "after". It's no problem whatsoever calling reply() first,
 > and then returning {noreply, S}.

I can see that it's no problem in the gen_server implementation.

But I can't see anything in the documentation which prohibits a future
gen_server from breaking the reply-before-return.

So the paranoid and prudent might prefer to avoid calling reply()
first, unless you know that a large Ericsson project contains code
like that, in which case you can relax. ;-)


More information about the erlang-questions mailing list