goth
goth copied to clipboard
Suggestion - Goth.exists?/1 function
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 ?