[erlang-questions] gen_server:cast/2 reordering

Ben Hood 0x6e6562@REDACTED
Mon Nov 10 16:03:33 CET 2008


Hi all,

I am interested in the reordering semantics of gen_server:cast/2.

I have just been looking at the source it and by default it uses the
noconnect flag.

There was this thread about it almost 2 years ago:

http://www.erlang.org/pipermail/erlang-questions/2007-January/025047.html

But this last question didn't seem to get answered.

My question is: if I want to guarantee the message order from one
particular process to another process, do I have to avoid using the
noconnect flag, e.g.

Dest ! { '$gen_cast, Msg}

?



More information about the erlang-questions mailing list