-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Ignore furthur messages after entering terminate state #1657
Conversation
I have a question about implementing custom Subscribers. Should we always check for isUnsubscribed on the subscriber before doing further processing inside onNext onError and onCompleted? What's the best practice when implementing a custom Subscriber? |
You don't need to check it. If you use Usually, If you are not implementing an |
There are very few places where @girishkolantra What do you mean by "custom Subscriber"? |
I meant any subscriber that we implement. I have seen some sample code with checks isUnsubscribed and others that dont. I just wanted to understand what the differences are and when to use what. Thanks for taking the time to answer my questions. |
@girishkolantra we can continue the discussion here: #1633 |
@benjchristensen do I need to send another PR for 1.x? |
Ignore furthur messages after entering terminate state
@zsxwing I think what we're really missing is That said, it won't help to unsubscribe when inside a We may also want to add these same terminal state checks to |
@benjchristensen Why not add the check for |
As per #1633