[erlang-questions] Letting 'every process run until it is blocked' on an Erlang node.

Erik Søe Sørensen eriksoe@REDACTED
Tue Feb 26 00:25:29 CET 2013


2013/2/25 Jan Henry Nystrom <janhenrynystrom@REDACTED>
[snip]

>
> But my hunch is that if you are trying to do this your are doing something
> fundamentally wrong, but hey without
> more information it is hard to tell.
>

I must admit to having done something similar.
Not in production code (of course!), but as an alternative to "wait a fixed
number of milliseconds" in unit and integration tests.

As far as I remember, what I did was loop (up to a certain limit) until no
processes were running and all message queues were empty.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130226/dd880de6/attachment.htm>


More information about the erlang-questions mailing list