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

Expire after bug #196

Merged
merged 3 commits into from
Feb 11, 2019
Merged

Conversation

Peter-B-
Copy link

@Peter-B- Peter-B- commented Feb 4, 2019

This PR is an attempt to resolve #187.

I think the root cause of this issue was, that MergeMany propagates OnCompleted from all items to the outside observer. So when the first item's remove is executed and the observable started with Observable.Timer is completed, the overall stream is completed an the remove of subsequent items will not be executed.

Please review my changes to MergeMany. I am ignoring OnCompleted and OnError and I am not sure, if this is the correct thing to do.

@RolandPheasant
Copy link
Collaborator

Thanks, this looks good to me. Before I merge it, I will have a think about whether the fix should be applied in SubscribeMany

@Peter-B-
Copy link
Author

Peter-B- commented Feb 5, 2019

You are welcome.

I am not sure what I broke with that. Besides, I realized that my fix is the only place where OnCompleted and OnError is discarded and I am not sure, if this is the correct pattern.

@RolandPheasant
Copy link
Collaborator

You broke nothing. My thought is whether the issue can also exist with subscribe many. Accounting for your comments it almost certainly does not

@RolandPheasant RolandPheasant merged commit 9df4204 into reactivemarbles:master Feb 11, 2019
@lock lock bot locked and limited conversation to collaborators Jul 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ExpireAfter in ToObservableChangeSet with a key does only remove items once
2 participants