[erlang-questions] Disallowing gen_server:handle_cast() for a while?
Wed Mar 2 15:20:28 CET 2011
On Wed, Mar 02, 2011 at 04:16:17PM +0200, Nav wrote:
> Is there a way to stop handle_cast(..) being called (i.e. stop
> gen_server from reading data from queue) for a while?
A selective receive? A timer:sleep?
> Does gen_server maintain separate message queue for each of its handle_cast?
No, each process has one mailbox. That is true regardless of the use of
More information about the erlang-questions