3 ms·
From R15B01 you can actually use "plugins" for process registering using the {via, Mod, Key} syntax. Gproc supports this and using it you can do stuff like:
by omarkj_ 14y ago
From R15B01 you can actually use "plugins" for process registering using the {via, Mod, Key} syntax.
Gproc supports this and using it you can do stuff like:
gen_server:start_link({via, gproc, {Your, "very", <<"complex">>, key}, [...])
you can also roll your own.
Docs: http://www.erlang.org/doc/man/gen_server.html#start_link-3 http://www.erlang.org/doc/man/gen_server.html#start_link-3