Skip to content

fix(base-flow): add subscriber error observer to SubscriberRegistry#92

Merged
deer merged 1 commit into
mainfrom
flow_fix
Jun 28, 2026
Merged

fix(base-flow): add subscriber error observer to SubscriberRegistry#92
deer merged 1 commit into
mainfrom
flow_fix

Conversation

@deer

@deer deer commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator
  • Adds a onSubscriberError(BiConsumer<Subscriber<?>, Throwable>) method to SubscriberRegistry that lets callers register an observer called whenever a subscriber throws from onNext, before that subscriber is terminated.
  • The observer defaults to a no-op, so this is a fully backwards-compatible addition.
  • Adds a test (shouldNotifyObserverWhenSubscriberThrows) that verifies the observer is invoked with the correct throwable and that the faulting subscriber is subsequently terminated.

@deer deer merged commit 0bc28b9 into main Jun 28, 2026
3 checks passed
@deer deer deleted the flow_fix branch June 28, 2026 03:54
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.

1 participant