reactive-streams/reactive-streams-jvm

Incorrect documentation for subscription.request

tferi-da opened this issue · 5 comments

I believe this line is misleading.
According to rule 3.17 if demand exceeds Long.MAX_VALUE the publisher should keep working, and may become unbounded. There's even a test which is checking that demand beyond Long.MAX_VALUE is tolerated without errors.

Hi @tferi-da,

Thanks for opening this issue!

I'm inclined to agree with your assessment,
what do you think about amending it as such:

 * It can be called however often and whenever needed—but if the outstanding cumulative demand ever becomes Long.MAX_VALUE or more, it may be treated by the {@link Publisher} as "effectively unbounded".

Yes @viktorklang, I think that's much better. Thank you for responding so quickly.

@reactive-streams/contributors Wdyt?

@reactive-streams/contributors Ping.

Thank you for the fix @viktorklang