File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
src/main/java/io/reactivex/rxjava3 Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 18
18
import io .reactivex .rxjava3 .annotations .NonNull ;
19
19
20
20
/**
21
- * Represents a Reactive-Streams inspired {@link Subscriber} that is RxJava 2 only
22
- * and weakens rules §1.3 and §3.9 of the specification for gaining performance.
21
+ * Represents a Reactive-Streams inspired {@link Subscriber} that is RxJava 3 only
22
+ * and weakens the Reactive Streams rules <a href='https://github.com/reactive-streams/reactive-streams-jvm#1.3'>§1.3</a>
23
+ * and <a href='https://github.com/reactive-streams/reactive-streams-jvm#3.9'>§3.9</a> of the specification
24
+ * for gaining performance.
23
25
*
24
26
* <p>History: 2.0.7 - experimental; 2.1 - beta
25
27
* @param <T> the value type
Original file line number Diff line number Diff line change @@ -117,15 +117,13 @@ public void onError(Throwable t) {
117
117
}
118
118
}
119
119
120
- upstream .cancel ();
121
120
if (innerError != null ) {
122
121
downstream .onError (new CompositeException (t , innerError ));
123
122
} else {
124
123
downstream .onError (t );
125
124
}
126
125
} else {
127
126
downstream .onError (t );
128
- upstream .cancel ();
129
127
disposeResource ();
130
128
}
131
129
}
@@ -143,11 +141,9 @@ public void onComplete() {
143
141
}
144
142
}
145
143
146
- upstream .cancel ();
147
144
downstream .onComplete ();
148
145
} else {
149
146
downstream .onComplete ();
150
- upstream .cancel ();
151
147
disposeResource ();
152
148
}
153
149
}
Original file line number Diff line number Diff line change @@ -115,11 +115,9 @@ public void onError(Throwable t) {
115
115
}
116
116
}
117
117
118
- upstream .dispose ();
119
118
downstream .onError (t );
120
119
} else {
121
120
downstream .onError (t );
122
- upstream .dispose ();
123
121
disposeResource ();
124
122
}
125
123
}
@@ -137,11 +135,9 @@ public void onComplete() {
137
135
}
138
136
}
139
137
140
- upstream .dispose ();
141
138
downstream .onComplete ();
142
139
} else {
143
140
downstream .onComplete ();
144
- upstream .dispose ();
145
141
disposeResource ();
146
142
}
147
143
}
You can’t perform that action at this time.
0 commit comments