Hi all,<br><br>Why we need to use make_ref/0 in pmap ? To be exact, why we need to use make_ref in the gather/2,<br><br>gather([Pid|T], Ref) -><br> receive<br> {Pid, Ref, Ret} -> [Ret|gather(T, Ref)]<br>end;<br><br>
Can't we just use gather/1,<br><br>gather([Pid|T]) -><br>
receive<br>
{Pid, Ret} -> [Ret|gather(T)]<br>
end;<br><br>Thanks !<br><br>Qiulang<br>