#ets queries in #elixir #registry
Gonna know that schema to make those queries, y'all.
> The first part, the match pattern, must be a tuple that will match the structure of the the data stored in the registry, which is {key, pid, value}. The atom :_ can be used to ignore a given value or tuple element, while the atom :"$1" can be used to temporarily assign part of pattern to a variable for a subsequent comparison. This can be combined like {:"$1", :_, :_}.
Even better:
Mastodon server of https://doma.dev.