darkmarmot
Any way subscribe to Registry's 'unregister'?
I would find it quite useful to be able to get a callback when Registry removes a {pid, value} on process death (even if this is deferred).
Looking through Registry’s code, though, I couldn’t find the spot where it even handles this. 
Any ideas or line numbers in the repo would be appreciated! Thanks!
Most Liked
benwilson512
You’d probably be better off explicitly having one of your own processes monitor the process you wish to be messaged about.
michalmuskala
I think you should be able to use the listeners option to achieve what you want - https://hexdocs.pm/elixir/Registry.html#start_link/1
josevalim
That’s what the documentation refers to. You are only notified of explicit registration/unregistration. If you want to know a process crashed, then you need to monitor it, as suggested by @benwilson512.







