Skip to content

Commit 57156e3

Browse files
committed
javadoc: diagrams for onBackpressureBlock (would benefit from a review)
1 parent 294a8e8 commit 57156e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/rx/Observable.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5059,6 +5059,8 @@ public final Observable<T> onBackpressureDrop() {
50595059
* Instructs an Observable that is emitting items faster than its observer can consume them to
50605060
* block the producer thread.
50615061
* <p>
5062+
* <img width="640" height="245" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/bp.obp.block.png" alt="">
5063+
* <p>
50625064
* The producer side can emit up to {@code maxQueueLength} onNext elements without blocking, but the
50635065
* consumer side considers the amount its downstream requested through {@code Producer.request(n)}
50645066
* and doesn't emit more than requested even if more is available. For example, using
@@ -5081,6 +5083,8 @@ public final Observable<T> onBackpressureBlock(int maxQueueLength) {
50815083
* Instructs an Observable that is emitting items faster than its observer can consume them to block the
50825084
* producer thread if the number of undelivered onNext events reaches the system-wide ring buffer size.
50835085
* <p>
5086+
* <img width="640" height="245" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/bp.obp.block.png" alt="">
5087+
* <p>
50845088
* The producer side can emit up to the system-wide ring buffer size onNext elements without blocking, but
50855089
* the consumer side considers the amount its downstream requested through {@code Producer.request(n)}
50865090
* and doesn't emit more than requested even if available.

0 commit comments

Comments
 (0)