How do I use Process.whereis on a process with name `Elixir.Company.EventBus.Consumer.Worker:-start_link/2-fun-0/0`?

I have a process supervised by a different process whose name as it appears in observer is Elixir.Company.EventBus.Consumer.Worker:-start_link/2-fun-0/0. How do I find out it’s PID using Process.whereis?

Elixir.Company.EventBus.Consumer.Worker seems to be the name of the process so try calling Process.whereis with it.

1 Like