@@ -8216,9 +8216,10 @@ public final Single<T> firstOrError() {
8216
8216
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/flatMap.png" alt="">
8217
8217
* <dl>
8218
8218
* <dt><b>Backpressure:</b></dt>
8219
- * <dd>The operator honors backpressure from downstream. The outer {@code Publisher} is consumed
8220
- * in unbounded mode (i.e., no backpressure is applied to it). The inner {@code Publisher}s are expected to honor
8221
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8219
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8220
+ * in a bounded manner (up to {@link #bufferSize()} outstanding request amount for items).
8221
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8222
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8222
8223
* <dt><b>Scheduler:</b></dt>
8223
8224
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8224
8225
* </dl>
@@ -8247,9 +8248,10 @@ public final <R> Flowable<R> flatMap(Function<? super T, ? extends Publisher<? e
8247
8248
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/flatMap.png" alt="">
8248
8249
* <dl>
8249
8250
* <dt><b>Backpressure:</b></dt>
8250
- * <dd>The operator honors backpressure from downstream. The outer {@code Publisher} is consumed
8251
- * in unbounded mode (i.e., no backpressure is applied to it). The inner {@code Publisher}s are expected to honor
8252
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8251
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8252
+ * in a bounded manner (up to {@link #bufferSize()} outstanding request amount for items).
8253
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8254
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8253
8255
* <dt><b>Scheduler:</b></dt>
8254
8256
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8255
8257
* </dl>
@@ -8282,8 +8284,10 @@ public final <R> Flowable<R> flatMap(Function<? super T, ? extends Publisher<? e
8282
8284
* <!-- <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/flatMap.png" alt=""> -->
8283
8285
* <dl>
8284
8286
* <dt><b>Backpressure:</b></dt>
8285
- * <dd>The operator honors backpressure from downstream. Both the outer and inner {@code Publisher}s are expected to honor
8286
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8287
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8288
+ * in a bounded manner (up to {@code maxConcurrency} outstanding request amount for items).
8289
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8290
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8287
8291
* <dt><b>Scheduler:</b></dt>
8288
8292
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8289
8293
* </dl>
@@ -8316,8 +8320,10 @@ public final <R> Flowable<R> flatMap(Function<? super T, ? extends Publisher<? e
8316
8320
* <!-- <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/flatMap.png" alt=""> -->
8317
8321
* <dl>
8318
8322
* <dt><b>Backpressure:</b></dt>
8319
- * <dd>The operator honors backpressure from downstream. Both the outer and inner {@code Publisher}s are expected to honor
8320
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8323
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8324
+ * in a bounded manner (up to {@code maxConcurrency} outstanding request amount for items).
8325
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8326
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8321
8327
* <dt><b>Scheduler:</b></dt>
8322
8328
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8323
8329
* </dl>
@@ -8353,8 +8359,10 @@ public final <R> Flowable<R> flatMap(Function<? super T, ? extends Publisher<? e
8353
8359
* <!-- <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/flatMap.png" alt=""> -->
8354
8360
* <dl>
8355
8361
* <dt><b>Backpressure:</b></dt>
8356
- * <dd>The operator honors backpressure from downstream. Both the outer and inner {@code Publisher}s are expected to honor
8357
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8362
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8363
+ * in a bounded manner (up to {@code maxConcurrency} outstanding request amount for items).
8364
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8365
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8358
8366
* <dt><b>Scheduler:</b></dt>
8359
8367
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8360
8368
* </dl>
@@ -8402,9 +8410,10 @@ public final <R> Flowable<R> flatMap(Function<? super T, ? extends Publisher<? e
8402
8410
* <img width="640" height="410" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/mergeMap.nce.png" alt="">
8403
8411
* <dl>
8404
8412
* <dt><b>Backpressure:</b></dt>
8405
- * <dd>The operator honors backpressure from downstream. The outer {@code Publisher} is consumed
8406
- * in unbounded mode (i.e., no backpressure is applied to it). The inner {@code Publisher}s are expected to honor
8407
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8413
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8414
+ * in a bounded manner (up to {@link #bufferSize()} outstanding request amount for items).
8415
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8416
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8408
8417
* <dt><b>Scheduler:</b></dt>
8409
8418
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8410
8419
* </dl>
@@ -8444,8 +8453,10 @@ public final <R> Flowable<R> flatMap(
8444
8453
* <!-- <img width="640" height="410" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/mergeMap.nce.png" alt=""> -->
8445
8454
* <dl>
8446
8455
* <dt><b>Backpressure:</b></dt>
8447
- * <dd>The operator honors backpressure from downstream. Both the outer and inner {@code Publisher}s are expected to honor
8448
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8456
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8457
+ * in a bounded manner (up to {@code maxConcurrency} outstanding request amount for items).
8458
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8459
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8449
8460
* <dt><b>Scheduler:</b></dt>
8450
8461
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8451
8462
* </dl>
@@ -8489,20 +8500,21 @@ public final <R> Flowable<R> flatMap(
8489
8500
* <img width="640" height="390" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/mergeMap.r.png" alt="">
8490
8501
* <dl>
8491
8502
* <dt><b>Backpressure:</b></dt>
8492
- * <dd>The operator honors backpressure from downstream. The outer {@code Publisher} is consumed
8493
- * in unbounded mode (i.e., no backpressure is applied to it). The inner {@code Publisher}s are expected to honor
8494
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8503
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8504
+ * in a bounded manner (up to {@code maxConcurrency} outstanding request amount for items).
8505
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8506
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8495
8507
* <dt><b>Scheduler:</b></dt>
8496
8508
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8497
8509
* </dl>
8498
8510
*
8499
8511
* @param <U>
8500
- * the type of items emitted by the collection Publisher
8512
+ * the type of items emitted by the inner Publishers
8501
8513
* @param <R>
8502
- * the type of items emitted by the resulting Publisher
8514
+ * the type of items emitted by the combiner function
8503
8515
* @param mapper
8504
8516
* a function that returns a Publisher for each item emitted by the source Publisher
8505
- * @param resultSelector
8517
+ * @param combiner
8506
8518
* a function that combines one item emitted by each of the source and collection Publishers and
8507
8519
* returns an item to be emitted by the resulting Publisher
8508
8520
* @return a Flowable that emits the results of applying a function to a pair of values emitted by the
@@ -8513,8 +8525,8 @@ public final <R> Flowable<R> flatMap(
8513
8525
@BackpressureSupport(BackpressureKind.FULL)
8514
8526
@SchedulerSupport(SchedulerSupport.NONE)
8515
8527
public final <U, R> Flowable<R> flatMap(Function<? super T, ? extends Publisher<? extends U>> mapper,
8516
- BiFunction<? super T, ? super U, ? extends R> resultSelector ) {
8517
- return flatMap(mapper, resultSelector , false, bufferSize(), bufferSize());
8528
+ BiFunction<? super T, ? super U, ? extends R> combiner ) {
8529
+ return flatMap(mapper, combiner , false, bufferSize(), bufferSize());
8518
8530
}
8519
8531
8520
8532
/**
@@ -8524,17 +8536,18 @@ public final <U, R> Flowable<R> flatMap(Function<? super T, ? extends Publisher<
8524
8536
* <img width="640" height="390" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/mergeMap.r.png" alt="">
8525
8537
* <dl>
8526
8538
* <dt><b>Backpressure:</b></dt>
8527
- * <dd>The operator honors backpressure from downstream. The outer {@code Publisher} is consumed
8528
- * in unbounded mode (i.e., no backpressure is applied to it). The inner {@code Publisher}s are expected to honor
8529
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8539
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8540
+ * in a bounded manner (up to {@link #bufferSize()} outstanding request amount for items).
8541
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8542
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8530
8543
* <dt><b>Scheduler:</b></dt>
8531
8544
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8532
8545
* </dl>
8533
8546
*
8534
8547
* @param <U>
8535
- * the type of items emitted by the collection Publisher
8548
+ * the type of items emitted by the inner Publishers
8536
8549
* @param <R>
8537
- * the type of items emitted by the resulting Publisher
8550
+ * the type of items emitted by the combiner functions
8538
8551
* @param mapper
8539
8552
* a function that returns a Publisher for each item emitted by the source Publisher
8540
8553
* @param combiner
@@ -8563,16 +8576,18 @@ public final <U, R> Flowable<R> flatMap(Function<? super T, ? extends Publisher<
8563
8576
* <!-- <img width="640" height="390" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/mergeMap.r.png" alt=""> -->
8564
8577
* <dl>
8565
8578
* <dt><b>Backpressure:</b></dt>
8566
- * <dd>The operator honors backpressure from downstream. Both the outer and inner {@code Publisher}s are expected to honor
8567
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8579
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8580
+ * in a bounded manner (up to {@code maxConcurrency} outstanding request amount for items).
8581
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8582
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8568
8583
* <dt><b>Scheduler:</b></dt>
8569
8584
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8570
8585
* </dl>
8571
8586
*
8572
8587
* @param <U>
8573
- * the type of items emitted by the collection Publisher
8588
+ * the type of items emitted by the inner Publishers
8574
8589
* @param <R>
8575
- * the type of items emitted by the resulting Publisher
8590
+ * the type of items emitted by the combiner function
8576
8591
* @param mapper
8577
8592
* a function that returns a Publisher for each item emitted by the source Publisher
8578
8593
* @param combiner
@@ -8604,16 +8619,18 @@ public final <U, R> Flowable<R> flatMap(Function<? super T, ? extends Publisher<
8604
8619
* <!-- <img width="640" height="390" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/mergeMap.r.png" alt=""> -->
8605
8620
* <dl>
8606
8621
* <dt><b>Backpressure:</b></dt>
8607
- * <dd>The operator honors backpressure from downstream. Both the outer and inner {@code Publisher}s are expected to honor
8608
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8622
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8623
+ * in a bounded manner (up to {@code maxConcurrency} outstanding request amount for items).
8624
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8625
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8609
8626
* <dt><b>Scheduler:</b></dt>
8610
8627
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8611
8628
* </dl>
8612
8629
*
8613
8630
* @param <U>
8614
- * the type of items emitted by the collection Publisher
8631
+ * the type of items emitted by the inner Publishers
8615
8632
* @param <R>
8616
- * the type of items emitted by the resulting Publisher
8633
+ * the type of items emitted by the combiner function
8617
8634
* @param mapper
8618
8635
* a function that returns a Publisher for each item emitted by the source Publisher
8619
8636
* @param combiner
@@ -8649,16 +8666,18 @@ public final <U, R> Flowable<R> flatMap(final Function<? super T, ? extends Publ
8649
8666
* <!-- <img width="640" height="390" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/mergeMap.r.png" alt=""> -->
8650
8667
* <dl>
8651
8668
* <dt><b>Backpressure:</b></dt>
8652
- * <dd>The operator honors backpressure from downstream. Both the outer and inner {@code Publisher}s are expected to honor
8653
- * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8669
+ * <dd>The operator honors backpressure from downstream. The upstream Flowable is consumed
8670
+ * in a bounded manner (up to {@link #bufferSize()} outstanding request amount for items).
8671
+ * The inner {@code Publisher}s are expected to honor backpressure; if violated,
8672
+ * the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
8654
8673
* <dt><b>Scheduler:</b></dt>
8655
8674
* <dd>{@code flatMap} does not operate by default on a particular {@link Scheduler}.</dd>
8656
8675
* </dl>
8657
8676
*
8658
8677
* @param <U>
8659
- * the type of items emitted by the collection Publisher
8678
+ * the type of items emitted by the inner Publishers
8660
8679
* @param <R>
8661
- * the type of items emitted by the resulting Publisher
8680
+ * the type of items emitted by the combiner function
8662
8681
* @param mapper
8663
8682
* a function that returns a Publisher for each item emitted by the source Publisher
8664
8683
* @param combiner
0 commit comments