-
Notifications
You must be signed in to change notification settings - Fork 3k
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
OuterSubscriber::notifyNext() to pass its innersubscriber? #1250
Comments
@kwonoj I remember wanting this a while back as well, so I'm in favor of this change. |
I can gladly take effort to create PR if this reaches agreed to have. |
I'm indifferent. Just be sure to test perf before and after. |
Cool, I'll come up PR with perf comparison to see if this change does not hurt existing operator behavior. |
- notifyNext() passes inner subscriber as same as notifyError(), notifyComplete() does, supports subscription management closes ReactiveX#1250
- notifyNext() passes inner subscriber as same as notifyError(), notifyComplete() does, supports subscription management closes ReactiveX#1250
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm not sure if this is legit, please consider it as speaking out my thought - feel freely close if it's not appropriate.
OuterSubscriber
's interface forerror
andcomplete
passes its innersubscription when it occurs, aswhile
notifyNext
doesn't. Came to think align interfacesnotifyNext
also, for some cases of support early-unsubscription as soon as inner emits likedelayWhen
, i.esubscription to selector observable unsubscribes as soon as selector emits, or either completes without emitting. If
notifyNext
passes its subscription, outer subscriber doesn't have to holds reference or need to lookup to manage subscription, allows snippet likeThe text was updated successfully, but these errors were encountered: