Relocker.Registry

This module provides a global process registry using Relocker.Locker as the storage backend. It supports e.g., the GenServer‘s {:via, module, term} API.

Summary

Functions

Registers the given pid to a name globally

Send message to the registered process

Unregisters the calling process

Unregisters the given name

Finds the process identifier for the given name

Functions

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

Registers the given pid to a name globally.

send(name, msg)

Send message to the registered process.

unregister()

Specs

unregister :: any

Unregisters the calling process.

unregister_name(name)

Specs

unregister_name(any) :: any

Unregisters the given name.

whereis_name(name)

Specs

whereis_name(any) :: pid | :undefined

Finds the process identifier for the given name.