It can be called however often and whenever needed—but the outstanding cumulative demand must never exceed Long.MAX_VALUE. An outstanding cumulative demand of Long.MAX_VALUE may be treated by the {@link Publisher} as "effectively unbounded".
Whatever has been requested can be sent by the {@link Publisher} so only signal demand for what can be safely handled.
A {@link Publisher} can send less than is requested if the stream ends butthen must emit either {@link Subscriber#onError(Throwable)} or {@link Subscriber#onComplete()}. @param n the strictly positive number of elements to requests to the upstream {@link Publisher}
|
|