Skip to content

Commit ea42368

Browse files
committed
update comments
1 parent d827e06 commit ea42368

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/rx/internal/operators/OnSubscribeRedo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ public void onNext(Object t) {
351351
// that resubscription
352352

353353
//TODO what if consumerCapacity increases now then we are in a situation where the
354-
// next call of request(n) will do nothing because of the c ==0 check in request(n)
355-
// this would cause the stream to stall?
354+
// next call of request(n) will do nothing because of the c ==0 check in request(n).
355+
// this could cause the stream to stall? Fix might be to remove c==0 check?
356356
resumeBoundary.compareAndSet(false, true);
357357
}
358358
}
@@ -378,7 +378,7 @@ public void request(final long n) {
378378
if (producer != null) {
379379
// TODO what if at this point the subscription finishes and currentProducer
380380
// is set to null or even the next producer. The request would be added to consumerCapacity but
381-
// if it more requests only come after emission then this call to the old producer could produce
381+
// if more requests only come after emission then this call to the old producer could produce
382382
// nothing and the stream would stall
383383
producer.request(n);
384384
} else

0 commit comments

Comments
 (0)