<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 20, 2014 at 11:40 AM, David Welton <span dir="ltr"><<a href="mailto:davidnwelton@gmail.com" target="_blank">davidnwelton@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":16k" class="a3s" style="overflow:hidden">The "obvious" thing from an<br>
Erlang point of view would be a selective receive, but I don't really<br>
see that in a quick glance at the docs, and if you're suggesting<br>
mailboxes, I take it that's the best way.</div></blockquote></div><br>JInterface is pretty simple. Implementing selective receive would be quite a job and I guess the code would look ugly as hell (constructing terms is not nice with jinterface). Maybe Java 8's lambda expressions could make it a bit prettier, but I wouldn't bet on that.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">There are a few Java libraries that extend the functionality, among which erlide has its own. I am planning to extract selected parts and publish them separately and even submit them to OTP, maybe jinterface in v18 will look better...</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">regards,</div><div class="gmail_extra">Vlad</div><div class="gmail_extra"><br></div></div>