[erlang-questions] Question on "selective receive"

Avinash Dhumane avinash_dhumane@REDACTED
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
meaning. 

 

Oh, Erlang - you're beauty!!

 

From: erlang-questions-bounces@REDACTED
[mailto:erlang-questions-bounces@REDACTED] On Behalf Of Avinash Dhumane
Sent: 19 January 2014 15:58
To: erlang-questions@REDACTED
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
block?

 

If it cannot, why?

 

Thanks

Avinash

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


More information about the erlang-questions mailing list