ostinelli / syn

A scalable global Process Registry and Process Group manager for Erlang and Elixir.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

callbacks improvements

silviucpp opened this issue · comments

Can you add also callbacks when a process join a group or a new pid is registered ? Right now I see callbacks are only when a pid leaves a group...

Silviu

I don't really see a benefit in this, since contrary to a process leaving a group / unregistering (where i.e. it may have crashed), you're in control when you register a process / join a group. Basically, in the same method where you register a new pid / join a group you can call whatever it is that you need to call beforehand.

Do you have a specific case where you'd need such a callback?