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

Map Error Handling #314

Merged
merged 2 commits into from
Jul 31, 2013

Conversation

benjchristensen
Copy link
Member

While reviewing pull request #312 I noticed that the behavior of Map didn't seem right in how it continued emitting values and necessitated the changes to onErrorResumeNext.

Digging in it seems the onNext was manually doing error handling but in a non-comprehensive manner whereas now I am letting the SafeObserver (previously called AtomicObserver) handle it which does unsubscribes and ignores subsequent events if it doesn't unsubscribe correctly.

This is also related to #216.

Rename to be more descriptive of what it has evolved to.
- Stop catching the error and passing to onError and instead let the SafeObserver handle it which will then prevent subsequent onNext calls and/or unsubscribe when a failure occurs.
- This also solves the OnErrorResumeNext issue fixed in ReactiveX#312 but those changes still seem valid so I'll leave them.

Related to ReactiveX#216 and ReactiveX#312
benjchristensen added a commit that referenced this pull request Jul 31, 2013
@benjchristensen benjchristensen merged commit 7c04f6b into ReactiveX:master Jul 31, 2013
@cloudbees-pull-request-builder

RxJava-pull-requests #189 SUCCESS
This pull request looks good

rickbw pushed a commit to rickbw/RxJava that referenced this pull request Jan 9, 2014
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.

2 participants