[erlang-questions] Question on "selective receive"
Sun Jan 19 23:57:16 CET 2014
You are talking about the 'after' clause of a receive expression. It can
only have integers as clauses, starting from 0 to infinity, and a special
value 'infinity' literally, which is the default.
So it cannot fail, these are not guards, it is just a time in
milliseconds, and the receive expression value is the 'after' clause value
if no pattern of the receive clause is satisfied in the duration.
(sorry for bad englih, i hope this is readable ;) )
Le Sun, 19 Jan 2014 11:28:12 +0100, Avinash Dhumane
<> a écrit:
> Can the timeout clause not have a guard too?
> If it can, what are the semantics of it? I mean, if the timeout occurs
> guard evaluates to false, what happens to receive? Does it continue to
> If it cannot, why?
Utilisant le logiciel de courrier révolutionnaire d'Opera :
More information about the erlang-questions