Open benbro opened 7 years ago
The lookup_local_name doc says "Fails if there is no such name". "Fail" seems like it raises an exception but it actually return undefined (which is good). Shouldn't it say something like "Return undefined if there is no such name"?
The spec should return "pid() | undefined" as well? https://github.com/uwiger/gproc/blob/master/src/gproc.erl#L279
Indeed.
The lookup_local_name doc says "Fails if there is no such name". "Fail" seems like it raises an exception but it actually return undefined (which is good). Shouldn't it say something like "Return undefined if there is no such name"?
The spec should return "pid() | undefined" as well? https://github.com/uwiger/gproc/blob/master/src/gproc.erl#L279