Closed peerst closed 9 years ago
@peerst, the function where/1 does exit if called with anything but a name or aggregated counter, which is what the doc says.
2> application:start(gproc).
ok
3> gproc:where({n,l,a}).
undefined
4> gproc:where({c,l,a}).
** exception error: bad argument
in function gproc:where/1
called as gproc:where({c,l,a})
5> gproc:where({a,l,a}).
undefined
6> gproc:where({p,l,a}).
** exception error: bad argument
in function gproc:where/1
called as gproc:where({p,l,a})
The other issues have been fixed. Thanks.
Oh yeah, did read it hastily
Spec for reg_or_locate/1:
Correct would be:
More documentation errors:
where and whereis_name return pid() | undefined
-> doc mentions "Otherwise this function will exit. " this is not the current behavior
While lookup_pid returns pid() or exits with badarg
This is not reflected in the doc so far, exiting is not mentioned