Grouper.Registry (Grouper v0.1.0) View Source

Provides name registration functions in the style of :global and Registry. Usually used with GenServer.start_link/3 using :via option to provide an isolated namespace for various processes.

Link to this section Summary

Functions

registers a process under a name within a group

sends a message to a process under a name within a group

unregisters a process under a name within a group

finds a process under a name within a group

Link to this section Functions

Link to this function

register_name(name, pid, opts \\ [])

View Source

Specs

register_name(atom(), pid(), keyword()) :: :yes | :no | no_return()

registers a process under a name within a group

Options

Options are passed on to the underlying data layer. See Data.api/1 for details.

Link to this function

send(name, msg, opts \\ [])

View Source

Specs

send(atom(), any(), keyword()) :: any()

sends a message to a process under a name within a group

Options

Options are passed on to the underlying data layer. See Data.api/1 for details.

Link to this function

unregister_name(name, opts \\ [])

View Source

Specs

unregister_name(atom(), keyword()) :: :ok | no_return()

unregisters a process under a name within a group

Options

Options are passed on to the underlying data layer. See Data.api/1 for details.

Link to this function

whereis_name(name, opts \\ [])

View Source

Specs

whereis_name(atom(), keyword()) :: pid() | :undefined | no_return()

finds a process under a name within a group

Options

Options are passed on to the underlying data layer. See Data.api/1 for details.