Skip to content

Fix Registry doc and listener_message type - #15640

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
AlexGx:ag-registry_spec-doc-fix
Jul 20, 2026
Merged

Fix Registry doc and listener_message type#15640
josevalim merged 1 commit into
elixir-lang:mainfrom
AlexGx:ag-registry_spec-doc-fix

Conversation

@AlexGx

@AlexGx AlexGx commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Most notable: listener_message's registry_partition -> process

Comment thread lib/elixir/lib/registry.ex Outdated
@type listener_message ::
{:register, registry, key, registry_partition :: pid, value}
| {:unregister, registry, key, registry_partition :: pid}
{:register, registry, key, process :: pid, value}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's conveying less information. Before we were saying that's the pid related to the registry partition. Now we just say process :: pid, which is redundant.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

registry_partition is invalid label because, according impl here is the PID of process is registering or unregistering not a partition pid.

process name may not be precise enough. Do you have any suggestions for a better label name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

registered_process and unregistered_process?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! Let’s just remove the label then! Thank you!!

@AlexGx
AlexGx force-pushed the ag-registry_spec-doc-fix branch from 39724a1 to 3118b95 Compare July 20, 2026 18:31
@josevalim
josevalim merged commit dbf74a6 into elixir-lang:main Jul 20, 2026
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

@AlexGx
AlexGx deleted the ag-registry_spec-doc-fix branch July 20, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants