[erlang-questions] Why we need to use make_ref in pmap ?

Matthew Dempsky matthew@REDACTED
Sun Nov 30 22:56:24 CET 2008


2008/11/30 lang qiu <qiulang@REDACTED>:
> Why we need to use make_ref/0 in pmap ? To be exact, why we need to use
> make_ref in the gather/2,

The process calling pmap might also receive messages of the form {Pid,
Something} and then these could be mistaken for a pmap result message.
 References are "almost unique", so including one in the message
format makes it almost impossible to make this mistake.



More information about the erlang-questions mailing list