[erlang-questions] gen_server call and reply
Anthony Shipman
als@REDACTED
Sun Sep 16 16:59:31 CEST 2007
On Sunday 16 September 2007 23:59, you wrote:
> why not just use {reply, Result, State} or gen_server:cast instead of
> gen_server:call ?
>
> t
The server must handle multiple concurrent requests. Requests that can't be
responded to immediately must be queued. They will be replied to later.
Meanwhile other requests must be handled.
The code is a lot simpler if I have one way of replying to a request,
gen_server:reply, no matter whether it is an immediate reply or a delayed
reply.
--
Anthony Shipman Mamas don't let your babies
als@REDACTED grow up to be outsourced.
More information about the erlang-questions
mailing list