-
Notifications
You must be signed in to change notification settings - Fork 7.6k
2.0 Design: Resource Cleanup #2780
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
Comments
In my reimplementation for JDK 9 Flow API, I had to split RxJava's
The reactive-streams spec allows throwing |
I think I've convinced myself that we don't need the
There is no need to ensure
Let's do this in the If someone creates their own operator, or does an
This is a somewhat valid concern, and one we can address when We can't do anything about it though if someone passes in a Reactive Streams Anyone disagree with these view points? Can we proceed without |
I think a
If an One needs to Now the trouble is with the
I don't understand the paragraph.
|
Closing with the following resolution:
|
As part of 2.0 (#2450) we need to figure out what to do with the ReactiveX contract that is enforced by
SafeSubscriber
: https://github.com/ReactiveX/RxJava/blob/1.x/src/main/java/rx/observers/SafeSubscriber.javaThere are 2 important things it does:
RxJava/src/main/java/rx/observers/SafeSubscriber.java
Line 90 in 8614754
RxJava/src/main/java/rx/observers/SafeSubscriber.java
Line 191 in 8614754
onError
function fails or doesn't existRxJava/src/main/java/rx/observers/SafeSubscriber.java
Line 147 in 8614754
These come from Rx Design Guidelines 4.3 and 6.4, 6.6 and various discussions and bug fixes over the last couple years.
A 3rd thing it does which isn't required is it filters out any events after the first terminal event. This is just a safety net for incorrect
Observable
sources.The text was updated successfully, but these errors were encountered: