RE: How to know when a multi-spawned process set finish its work?

"Krukoff, John" <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <MWHPR2201MB116834B5EC08C0D9813039DBF64F9@MWHPR2201MB1168.namprd22.prod.outlook.com>
> Where can I find an example of a good code for this use case (even in the standard OTP library of course, I do not fear to read OTP code :) ?

Hi Giovanni,

FWIW, when I had a similar need for a simple CLI script I wrote long ago, rpc:pmap/3 was a good solution for me:

https://erlang.org/doc/man/rpc.html#pmap-3

which I used for this small utility script:

https://github.com/jkrukoff/fprof-totals/blob/master/src/fprof_totals.erl#L147

Don't know if it qualifies as "good", but it is at least short.

-- 
Giovanni Giorgi via webmail
*************************************************************************
This e-mail may contain confidential or privileged information.
If you are not the intended recipient, please notify the sender immediately and then delete it.

TIAA
*************************************************************************
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.