@@ -2573,25 +2573,27 @@ public final static <T, Resource> Observable<T> using(
2573
2573
2574
2574
/**
2575
2575
* Constructs an Observable that creates a dependent resource object which is disposed of just before
2576
- * termination if <code>disposeEagerly</code> is set to true and unsubscription does not occur before termination. Otherwise
2577
- * resource disposal will occur on unsubscription. Eager disposal is particularly appropriate for a synchronous observable
2578
- * that resuses resources. <code>disposeAction</code> will only be called once per subscription.
2576
+ * termination if you have set {@code disposeEagerly} to {@code true} and unsubscription does not occur
2577
+ * before termination. Otherwise resource disposal will occur on unsubscription. Eager disposal is
2578
+ * particularly appropriate for a synchronous Observable that resuses resources. {@code disposeAction} will
2579
+ * only be called once per subscription.
2579
2580
* <p>
2580
2581
* <img width="640" height="400" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/using.png" alt="">
2581
2582
* <dl>
2582
2583
* <dt><b>Scheduler:</b></dt>
2583
2584
* <dd>{@code using} does not operate by default on a particular {@link Scheduler}.</dd>
2584
2585
* </dl>
2585
2586
*
2587
+ * @warn "Backpressure Support" section missing from javadoc
2586
2588
* @param resourceFactory
2587
2589
* the factory function to create a resource object that depends on the Observable
2588
2590
* @param observableFactory
2589
2591
* the factory function to create an Observable
2590
2592
* @param disposeAction
2591
2593
* the function that will dispose of the resource
2592
2594
* @param disposeEagerly
2593
- * if true then disposal will happen either on unsubscription or just before emission of
2594
- * a terminal event (onComplete or onError).
2595
+ * if {@code true} then disposal will happen either on unsubscription or just before emission of
2596
+ * a terminal event ({@code onComplete} or {@code onError} ).
2595
2597
* @return the Observable whose lifetime controls the lifetime of the dependent resource object
2596
2598
* @see <a href="http://reactivex.io/documentation/operators/using.html">ReactiveX operators documentation: Using</a>
2597
2599
* @Experimental The behavior of this can change at any time.
@@ -8805,24 +8807,24 @@ public final Observable<T> unsubscribeOn(Scheduler scheduler) {
8805
8807
}
8806
8808
8807
8809
/**
8808
- * Merges the specified observable sequence into this Observable sequence by using the resultSelector
8809
- * function only when the source observable sequence (this instance) produces an element.
8810
- * <code><pre>
8811
- * ----A-------B------C-----> o1
8812
- *
8813
- * --0----1-2----3-4--------> o2
8814
- *
8815
- * | | |
8816
- * V V V
8810
+ * Merges the specified Observable into this Observable sequence by using the {@code resultSelector}
8811
+ * function only when the source Observable (this instance) emits an item.
8812
+ * <p>
8813
+ * <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/withLatestFrom.png" alt="">
8817
8814
*
8818
- * (A,0) (B,2) (C,4)
8819
- * </pre></code>
8820
- * @param other the other observable sequence
8821
- * @param resultSelector the function to call when this Observable emits an element and the other
8822
- * observable sequence has already emitted a value.
8823
- * @return an Observable that merges the specified observable sequence into this Observable sequence
8824
- * by using the resultSelector function only when the source observable sequence
8825
- * (this instance) produces an element
8815
+ * @warn "Backpressure Support" section missing from javadoc
8816
+ * @warn "Scheduler" section missing from javadoc
8817
+ * @param other
8818
+ * the other Observable
8819
+ * @param resultSelector
8820
+ * the function to call when this Observable emits an item and the other Observable has already
8821
+ * emitted an item, to generate the item to be emitted by the resulting Observable
8822
+ * @return an Observable that merges the specified Observable into this Observable by using the
8823
+ * {@code resultSelector} function only when the source Observable sequence (this instance) emits an
8824
+ * item
8825
+ * @Experimental The behavior of this can change at any time.
8826
+ * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
8827
+ * @see <a href="http://reactivex.io/documentation/operators/combinelatest.html">ReactiveX operators documentation: CombineLatest</a>
8826
8828
*/
8827
8829
@ Experimental
8828
8830
public final <U , R > Observable <R > withLatestFrom (Observable <? extends U > other , Func2 <? super T , ? super U , ? extends R > resultSelector ) {
0 commit comments