Skip to content

Make Observable notify safe against listener changes - #7

Merged
SvenMarcus merged 1 commit into
SvenMarcus:masterfrom
andrewfullard:fix/observable-safe-notify
Oct 18, 2026
Merged

SvenMarcus merged 1 commit into
SvenMarcus:masterfrom
andrewfullard:fix/observable-safe-notify

Conversation

@andrewfullard

@andrewfullard andrewfullard commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Notify iterates over a copy of the listener list, so listeners can detach
themselves or others mid-notification without skipping callbacks.
Adds has_listeners() to check whether any listener is attached.

Note that the Claude authorship here was primarily just commit management, the code changes were actually Codex.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Notify iterates over a copy of the listener list, so listeners can detach
themselves or others mid-notification without skipping callbacks.
Adds has_listeners() to check whether any listener is attached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SvenMarcus
SvenMarcus merged commit a93026f into SvenMarcus:master Oct 18, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants