Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure multicast subject preserves source type #1916

Merged
merged 5 commits into from
Jul 16, 2024

Conversation

glopesdev
Copy link
Member

In its current implementation, MulticastSubject would automatically cast the values of the source sequence into the subject type, which constitutes a fundamental violation of the contract for Sink operators.

This PR ensures that the conversion is applied only when raising notifications to the subject, and that otherwise the type and values of the original sequence are left untouched.

Fixes #1914

@glopesdev glopesdev added the fix Pull request that fixes an issue label Jul 15, 2024
@glopesdev glopesdev added this to the 2.8.5 milestone Jul 15, 2024
@glopesdev glopesdev requested a review from PathogenDavid July 15, 2024 13:16
@glopesdev glopesdev merged commit 9089b6e into bonsai-rx:main Jul 16, 2024
10 checks passed
@glopesdev glopesdev deleted the issue-1914 branch July 16, 2024 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multicasting values into a subject can change the type of the observable sequence
2 participants