[erlang-questions] Letting 'every process run until it is blocked' on an Erlang node.
Erik Søe Sørensen
Tue Feb 26 00:25:29 CET 2013
2013/2/25 Jan Henry Nystrom <janhenrynystrom@REDACTED>
> 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...
More information about the erlang-questions