[erlang-questions] Question on "selective receive"

Avinash Dhumane <>
Tue Jan 21 08:25:14 CET 2014

Just thought of sharing the information that Joe's book (pp 143-144, under
section "Receive with Timeout Value of Zero/Infinity") answers this
question. I had gone over these paragraphs several times in the past, but it
is only after confronted with a real life situation where these constructs
require application of mind that these small paragraphs illumined their real


Oh, Erlang - you're beauty!!


[mailto:] On Behalf Of Avinash Dhumane
Sent: 19 January 2014 15:58
Subject: [erlang-questions] Question on "selective receive"


Can the timeout clause not have a guard too?


If it can, what are the semantics of it? I mean, if the timeout occurs but
guard evaluates to false, what happens to receive? Does it continue to


If it cannot, why?




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140121/a6897bd1/attachment.html>

More information about the erlang-questions mailing list