Hello Erlang users,<br><br>Is there an option in the Erlang runtime to automatically delete a message that has been deposited into a process's mailbox as soon as a newer message with the same tag arrives? Is it easy to "patch" the Erlang language source code to support this "little" feature in case this is not there?<br>
<br>Or the only feasible way of getting this behavior is just to receive all messages till you get a sort of timeout and just keep the latest message with the tag you are interested in (i.e. user code only) in each receive phase? Is there a standard code idiom/snippet for this?<br>
<br>This feature would be very interesting for implementing the asynchronous iterations computing paradigm where each process only keeps the most up-to-date message when it looks into its incoming messages. <br><br>Thanks in advance,<br>
<br>giorgos<br><br><br><br>