Skip to content

Suggestion - Goth.exists?/1 function #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lkarthee opened this issue Mar 16, 2023 · 1 comment
Open

Suggestion - Goth.exists?/1 function #157

lkarthee opened this issue Mar 16, 2023 · 1 comment

Comments

@lkarthee
Copy link

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 ?

@Matsa59
Copy link

Matsa59 commented Mar 25, 2025

Please I need it too.
The Goth.fetch/1 returns an error if there is no started process.

I need this to check if user has upload its source credentials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants