https://github.com/gsantomaggio/yr
Another Erlang Registry - just for test
https://github.com/gsantomaggio/yr
erlang erlang-otp
Last synced: about 1 year ago
JSON representation
Another Erlang Registry - just for test
- Host: GitHub
- URL: https://github.com/gsantomaggio/yr
- Owner: Gsantomaggio
- License: gpl-3.0
- Created: 2018-08-24T16:51:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T21:06:37.000Z (over 7 years ago)
- Last Synced: 2025-02-01T12:11:12.344Z (over 1 year ago)
- Topics: erlang, erlang-otp
- Language: Erlang
- Size: 67.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Yes another Erlang Registry
---
This is just a test program.
Example:
```
> FM= fun R()->receive
{msg, MSG} -> io:format("got message:~p~n",[MSG]), R();
{close} -> io:format("Goodbye:~n",[])
end end.
> yr_reg:register(ps,spawn(FM)).
> yr_reg:whereis(ps) ! {msg, "hello"}.
got message:"hello"
> yr_reg:processes().
{ok,[{ps,<0.285.0>,#Ref<0.109273322.795607042.176688>}]}
> yr_reg:unregister(ps).
```