goth icon indicating copy to clipboard operation
goth copied to clipboard

Suggestion - Goth.exists?/1 function

Open lkarthee opened this issue 1 year ago • 0 comments

I am using a dynamic supervisor to spawn goth instances. The Goth instances are synced with db using a GenServer.

I felt an exists?/1 function to be missing.

  def exists?(name) do
   case Registry.lookup(@registry, name) do
      [{_pid,  _}] -> true
      _ -> false
    end
 end 

What are you thoughts on this - Can a PR be sent for this ?

lkarthee avatar Mar 16 '23 06:03 lkarthee