Skip to content

Commit 30a3f2b

Browse files
Support OnSetProducer/Request Changes
1 parent 9a9f1f1 commit 30a3f2b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rxjava-core/src/main/java/rx/internal/operators/OperatorZip.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ void tick() {
276276
}
277277
if (emitted > THRESHOLD) {
278278
for (Object obj : observers) {
279-
((InnerSubscriber) obj).request(emitted);
279+
((InnerSubscriber) obj).requestMore(emitted);
280280
}
281281
emitted = 0;
282282
}
@@ -298,6 +298,10 @@ final class InnerSubscriber extends Subscriber {
298298
public void onStart() {
299299
request(RxRingBuffer.SIZE);
300300
}
301+
302+
public void requestMore(long n) {
303+
request(n);
304+
}
301305

302306
@SuppressWarnings("unchecked")
303307
@Override

0 commit comments

Comments
 (0)