<div dir="ltr">Having a timeout inside the pattern matching semantics of receiving messages would be interesting.<div>But yes as Guilherme points out how would that work with receiving from distributed nodes?</div><div>Maybe something along</div><div><br></div><div><div style="font-size:12.8px"><div>recieve<br></div>    Msg:Node -> ...<br></div><span style="font-size:12.8px">end</span><br></div><div><br></div><div>maybe better:</div><div><div style="font-size:12.8px"><div><br class="gmail-Apple-interchange-newline">recieve<br></div><div><span style="font-size:12.8px">    Msg:Node:Sojourn -> ...</span><br></div></div><span style="font-size:12.8px">end</span><br></div><div><br></div><div>which alows</div><div><div style="font-size:12.8px"><div><br class="gmail-Apple-interchange-newline">recieve<br></div><div>    Msg:node() -> ...</div>    Msg:_:Sojourn -> ...<br></div><span style="font-size:12.8px">end</span><br></div><div><br></div><div>where node() would just get compiled to matching the local node.</div><div>Well this leaves the question of how would the libraries look like in the future.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><br></div><div>Cheers,</div><div>-- </div><div>Pierre Fenoll</div></div><div><br></div></div></div></div>
<br><div class="gmail_quote">On 24 January 2018 at 21:56, Guilherme Andrade <span dir="ltr"><<a href="mailto:g@gandrade.net" target="_blank">g@gandrade.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 23 January 2018 at 13:13, Jesper Louis Andersen <span dir="ltr"><<a href="mailto:jesper.louis.andersen@gmail.com" target="_blank">jesper.louis.andersen@gmail.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I like the point of considering such a change on gen_server, indeed. <br></div></blockquote><div><br></div></span><div>I took a look at the OTP source as this seemed simple enough to implement; the code was kind enough to remind me that one can call gen processes on remote nodes. At that point any possibility of using the monotonic clock  breaks down. <br><br></div><div>The functionality <i>could</i> be restricted to local gen processes, but then it's this one more crevasse people have to consider when working with the gen behaviours OTP provides, so I don't see it flying as a PR.<br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>