[erlang-questions] automatically delete older messages with the same tag (atom)?

Christian chsu79@REDACTED
Tue May 5 20:31:35 CEST 2009

On Tue, May 5, 2009 at 17:04, Giorgos Kollias <gidiko@REDACTED> wrote:

> Hello Erlang users,
> 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?
Not so surprising: use another process!

Have it post a "i've got something for you, come and get it" message. It can
then replace that "something" if a newer version of the "something" arrives
before you have retrieved it. Then start over.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090505/6b3f1ae8/attachment.htm>

More information about the erlang-questions mailing list