Registry.meta
You're seeing just the function
meta
, go back to Registry module for more information.
Specs
meta(registry(), meta_key()) :: {:ok, meta_value()} | :error
Reads registry metadata given on start_link/1
.
Atoms and tuples are allowed as keys.
Examples
iex> Registry.start_link(keys: :unique, name: Registry.MetaTest, meta: [custom_key: "custom_value"])
iex> Registry.meta(Registry.MetaTest, :custom_key)
{:ok, "custom_value"}
iex> Registry.meta(Registry.MetaTest, :unknown_key)
:error