Skip to content

Suggestion - Goth.exists?/1 function  #157

Description

@lkarthee

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions