@@ -5871,8 +5871,9 @@ public final void blockingSubscribe(Subscriber<? super T> subscriber) {
5871
5871
/**
5872
5872
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
5873
5873
* Publisher emits connected, non-overlapping buffers, each containing {@code count} items. When the source
5874
- * Publisher completes or encounters an error, the resulting Publisher emits the current buffer and
5875
- * propagates the notification from the source Publisher.
5874
+ * Publisher completes, the resulting Publisher emits the current buffer and propagates the notification from the
5875
+ * source Publisher. Note that if the source Publisher issues an onError notification the event is passed on
5876
+ * immediately without first emitting the buffer it is in the process of assembling.
5876
5877
* <p>
5877
5878
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer3.png" alt="">
5878
5879
* <dl>
@@ -5900,8 +5901,9 @@ public final Flowable<List<T>> buffer(int count) {
5900
5901
/**
5901
5902
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
5902
5903
* Publisher emits buffers every {@code skip} items, each containing {@code count} items. When the source
5903
- * Publisher completes or encounters an error, the resulting Publisher emits the current buffer and
5904
- * propagates the notification from the source Publisher.
5904
+ * Publisher completes, the resulting Publisher emits the current buffer and propagates the notification from the
5905
+ * source Publisher. Note that if the source Publisher issues an onError notification the event is passed on
5906
+ * immediately without first emitting the buffer it is in the process of assembling.
5905
5907
* <p>
5906
5908
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer4.png" alt="">
5907
5909
* <dl>
@@ -5933,8 +5935,9 @@ public final Flowable<List<T>> buffer(int count, int skip) {
5933
5935
/**
5934
5936
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
5935
5937
* Publisher emits buffers every {@code skip} items, each containing {@code count} items. When the source
5936
- * Publisher completes or encounters an error, the resulting Publisher emits the current buffer and
5937
- * propagates the notification from the source Publisher.
5938
+ * Publisher completes, the resulting Publisher emits the current buffer and propagates the notification from the
5939
+ * source Publisher. Note that if the source Publisher issues an onError notification the event is passed on
5940
+ * immediately without first emitting the buffer it is in the process of assembling.
5938
5941
* <p>
5939
5942
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer4.png" alt="">
5940
5943
* <dl>
@@ -5973,8 +5976,9 @@ public final <U extends Collection<? super T>> Flowable<U> buffer(int count, int
5973
5976
/**
5974
5977
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
5975
5978
* Publisher emits connected, non-overlapping buffers, each containing {@code count} items. When the source
5976
- * Publisher completes or encounters an error, the resulting Publisher emits the current buffer and
5977
- * propagates the notification from the source Publisher.
5979
+ * Publisher completes, the resulting Publisher emits the current buffer and propagates the notification from the
5980
+ * source Publisher. Note that if the source Publisher issues an onError notification the event is passed on
5981
+ * immediately without first emitting the buffer it is in the process of assembling.
5978
5982
* <p>
5979
5983
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer3.png" alt="">
5980
5984
* <dl>
@@ -6007,8 +6011,9 @@ public final <U extends Collection<? super T>> Flowable<U> buffer(int count, Cal
6007
6011
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6008
6012
* Publisher starts a new buffer periodically, as determined by the {@code timeskip} argument. It emits
6009
6013
* each buffer after a fixed timespan, specified by the {@code timespan} argument. When the source
6010
- * Publisher completes or encounters an error, the resulting Publisher emits the current buffer and
6011
- * propagates the notification from the source Publisher.
6014
+ * Publisher completes, the resulting Publisher emits the current buffer and propagates the notification from the
6015
+ * source Publisher. Note that if the source Publisher issues an onError notification the event is passed on
6016
+ * immediately without first emitting the buffer it is in the process of assembling.
6012
6017
* <p>
6013
6018
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer7.png" alt="">
6014
6019
* <dl>
@@ -6040,8 +6045,10 @@ public final Flowable<List<T>> buffer(long timespan, long timeskip, TimeUnit uni
6040
6045
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6041
6046
* Publisher starts a new buffer periodically, as determined by the {@code timeskip} argument, and on the
6042
6047
* specified {@code scheduler}. It emits each buffer after a fixed timespan, specified by the
6043
- * {@code timespan} argument. When the source Publisher completes or encounters an error, the resulting
6044
- * Publisher emits the current buffer and propagates the notification from the source Publisher.
6048
+ * {@code timespan} argument. When the source Publisher completes, the resulting Publisher emits the current buffer
6049
+ * and propagates the notification from the source Publisher. Note that if the source Publisher issues an onError
6050
+ * notification the event is passed on immediately without first emitting the buffer it is in the process of
6051
+ * assembling.
6045
6052
* <p>
6046
6053
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer7.s.png" alt="">
6047
6054
* <dl>
@@ -6075,8 +6082,10 @@ public final Flowable<List<T>> buffer(long timespan, long timeskip, TimeUnit uni
6075
6082
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6076
6083
* Publisher starts a new buffer periodically, as determined by the {@code timeskip} argument, and on the
6077
6084
* specified {@code scheduler}. It emits each buffer after a fixed timespan, specified by the
6078
- * {@code timespan} argument. When the source Publisher completes or encounters an error, the resulting
6079
- * Publisher emits the current buffer and propagates the notification from the source Publisher.
6085
+ * {@code timespan} argument. When the source Publisher completes, the resulting Publisher emits the current buffer
6086
+ * and propagates the notification from the source Publisher. Note that if the source Publisher issues an onError
6087
+ * notification the event is passed on immediately without first emitting the buffer it is in the process of
6088
+ * assembling.
6080
6089
* <p>
6081
6090
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer7.s.png" alt="">
6082
6091
* <dl>
@@ -6117,8 +6126,10 @@ public final <U extends Collection<? super T>> Flowable<U> buffer(long timespan,
6117
6126
/**
6118
6127
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6119
6128
* Publisher emits connected, non-overlapping buffers, each of a fixed duration specified by the
6120
- * {@code timespan} argument. When the source Publisher completes or encounters an error, the resulting
6121
- * Publisher emits the current buffer and propagates the notification from the source Publisher.
6129
+ * {@code timespan} argument. When the source Publisher completes, the resulting Publisher emits the current buffer
6130
+ * and propagates the notification from the source Publisher. Note that if the source Publisher issues an onError
6131
+ * notification the event is passed on immediately without first emitting the buffer it is in the process of
6132
+ * assembling.
6122
6133
* <p>
6123
6134
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer5.png" alt="">
6124
6135
* <dl>
@@ -6149,8 +6160,9 @@ public final Flowable<List<T>> buffer(long timespan, TimeUnit unit) {
6149
6160
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6150
6161
* Publisher emits connected, non-overlapping buffers, each of a fixed duration specified by the
6151
6162
* {@code timespan} argument or a maximum size specified by the {@code count} argument (whichever is reached
6152
- * first). When the source Publisher completes or encounters an error, the resulting Publisher emits the
6153
- * current buffer and propagates the notification from the source Publisher.
6163
+ * first). When the source Publisher completes, the resulting Publisher emits the current buffer and propagates the
6164
+ * notification from the source Publisher. Note that if the source Publisher issues an onError notification the event
6165
+ * is passed on immediately without first emitting the buffer it is in the process of assembling.
6154
6166
* <p>
6155
6167
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer6.png" alt="">
6156
6168
* <dl>
@@ -6184,9 +6196,10 @@ public final Flowable<List<T>> buffer(long timespan, TimeUnit unit, int count) {
6184
6196
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6185
6197
* Publisher emits connected, non-overlapping buffers, each of a fixed duration specified by the
6186
6198
* {@code timespan} argument as measured on the specified {@code scheduler}, or a maximum size specified by
6187
- * the {@code count} argument (whichever is reached first). When the source Publisher completes or
6188
- * encounters an error, the resulting Publisher emits the current buffer and propagates the notification
6189
- * from the source Publisher.
6199
+ * the {@code count} argument (whichever is reached first). When the source Publisher completes, the resulting
6200
+ * Publisher emits the current buffer and propagates the notification from the source Publisher. Note that if the
6201
+ * source Publisher issues an onError notification the event is passed on immediately without first emitting the
6202
+ * buffer it is in the process of assembling.
6190
6203
* <p>
6191
6204
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer6.s.png" alt="">
6192
6205
* <dl>
@@ -6222,9 +6235,10 @@ public final Flowable<List<T>> buffer(long timespan, TimeUnit unit, Scheduler sc
6222
6235
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6223
6236
* Publisher emits connected, non-overlapping buffers, each of a fixed duration specified by the
6224
6237
* {@code timespan} argument as measured on the specified {@code scheduler}, or a maximum size specified by
6225
- * the {@code count} argument (whichever is reached first). When the source Publisher completes or
6226
- * encounters an error, the resulting Publisher emits the current buffer and propagates the notification
6227
- * from the source Publisher.
6238
+ * the {@code count} argument (whichever is reached first). When the source Publisher completes, the resulting
6239
+ * Publisher emits the current buffer and propagates the notification from the source Publisher. Note that if the
6240
+ * source Publisher issues an onError notification the event is passed on immediately without first emitting the
6241
+ * buffer it is in the process of assembling.
6228
6242
* <p>
6229
6243
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer6.s.png" alt="">
6230
6244
* <dl>
@@ -6273,9 +6287,10 @@ public final <U extends Collection<? super T>> Flowable<U> buffer(
6273
6287
/**
6274
6288
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6275
6289
* Publisher emits connected, non-overlapping buffers, each of a fixed duration specified by the
6276
- * {@code timespan} argument and on the specified {@code scheduler}. When the source Publisher completes or
6277
- * encounters an error, the resulting Publisher emits the current buffer and propagates the notification
6278
- * from the source Publisher.
6290
+ * {@code timespan} argument and on the specified {@code scheduler}. When the source Publisher completes, the
6291
+ * resulting Publisher emits the current buffer and propagates the notification from the source Publisher. Note that
6292
+ * if the source Publisher issues an onError notification the event is passed on immediately without first emitting
6293
+ * the buffer it is in the process of assembling.
6279
6294
* <p>
6280
6295
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer5.s.png" alt="">
6281
6296
* <dl>
@@ -6307,7 +6322,9 @@ public final Flowable<List<T>> buffer(long timespan, TimeUnit unit, Scheduler sc
6307
6322
/**
6308
6323
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6309
6324
* Publisher emits buffers that it creates when the specified {@code openingIndicator} Publisher emits an
6310
- * item, and closes when the Publisher returned from {@code closingIndicator} emits an item.
6325
+ * item, and closes when the Publisher returned from {@code closingIndicator} emits an item. If any of the source
6326
+ * Publisher, {@code openingIndicator} or {@code closingIndicator} issues an onError notification the event is passed
6327
+ * on immediately without first emitting the buffer it is in the process of assembling.
6311
6328
* <p>
6312
6329
* <img width="640" height="470" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer2.png" alt="">
6313
6330
* <dl>
@@ -6341,7 +6358,9 @@ public final <TOpening, TClosing> Flowable<List<T>> buffer(
6341
6358
/**
6342
6359
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6343
6360
* Publisher emits buffers that it creates when the specified {@code openingIndicator} Publisher emits an
6344
- * item, and closes when the Publisher returned from {@code closingIndicator} emits an item.
6361
+ * item, and closes when the Publisher returned from {@code closingIndicator} emits an item. If any of the source
6362
+ * Publisher, {@code openingIndicator} or {@code closingIndicator} issues an onError notification the event is passed
6363
+ * on immediately without first emitting the buffer it is in the process of assembling.
6345
6364
* <p>
6346
6365
* <img width="640" height="470" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer2.png" alt="">
6347
6366
* <dl>
@@ -6387,7 +6406,8 @@ public final <TOpening, TClosing, U extends Collection<? super T>> Flowable<U> b
6387
6406
* <img width="640" height="395" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer8.png" alt="">
6388
6407
* <p>
6389
6408
* Completion of either the source or the boundary Publisher causes the returned Publisher to emit the
6390
- * latest buffer and complete.
6409
+ * latest buffer and complete. If either the source Publisher or the boundary Publisher issues an onError notification
6410
+ * the event is passed on immediately without first emitting the buffer it is in the process of assembling.
6391
6411
* <dl>
6392
6412
* <dt><b>Backpressure:</b></dt>
6393
6413
* <dd>This operator does not support backpressure as it is instead controlled by the {@code Publisher}
@@ -6420,7 +6440,8 @@ public final <B> Flowable<List<T>> buffer(Publisher<B> boundaryIndicator) {
6420
6440
* <img width="640" height="395" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer8.png" alt="">
6421
6441
* <p>
6422
6442
* Completion of either the source or the boundary Publisher causes the returned Publisher to emit the
6423
- * latest buffer and complete.
6443
+ * latest buffer and complete. If either the source Publisher or the boundary Publisher issues an onError notification
6444
+ * the event is passed on immediately without first emitting the buffer it is in the process of assembling.
6424
6445
* <dl>
6425
6446
* <dt><b>Backpressure:</b></dt>
6426
6447
* <dd>This operator does not support backpressure as it is instead controlled by the {@code Publisher}
@@ -6456,7 +6477,8 @@ public final <B> Flowable<List<T>> buffer(Publisher<B> boundaryIndicator, final
6456
6477
* <img width="640" height="395" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer8.png" alt="">
6457
6478
* <p>
6458
6479
* Completion of either the source or the boundary Publisher causes the returned Publisher to emit the
6459
- * latest buffer and complete.
6480
+ * latest buffer and complete. If either the source Publisher or the boundary Publisher issues an onError notification
6481
+ * the event is passed on immediately without first emitting the buffer it is in the process of assembling.
6460
6482
* <dl>
6461
6483
* <dt><b>Backpressure:</b></dt>
6462
6484
* <dd>This operator does not support backpressure as it is instead controlled by the {@code Publisher}
@@ -6491,10 +6513,12 @@ public final <B, U extends Collection<? super T>> Flowable<U> buffer(Publisher<B
6491
6513
/**
6492
6514
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6493
6515
* Publisher emits connected, non-overlapping buffers. It emits the current buffer and replaces it with a
6494
- * new buffer whenever the Publisher produced by the specified {@code closingIndicator } emits an item.
6516
+ * new buffer whenever the Publisher produced by the specified {@code boundaryIndicatorSupplier } emits an item.
6495
6517
* <p>
6496
6518
* <img width="640" height="395" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer1.png" alt="">
6497
6519
* <dl>
6520
+ * If either the source Publisher or the boundary Publisher issues an onError notification the event is passed on
6521
+ * immediately without first emitting the buffer it is in the process of assembling.
6498
6522
* <dt><b>Backpressure:</b></dt>
6499
6523
* <dd>This operator does not support backpressure as it is instead controlled by the given Publishers and
6500
6524
* buffers data. It requests {@code Long.MAX_VALUE} upstream and does not obey downstream requests.</dd>
@@ -6522,10 +6546,12 @@ public final <B> Flowable<List<T>> buffer(Callable<? extends Publisher<B>> bound
6522
6546
/**
6523
6547
* Returns a Flowable that emits buffers of items it collects from the source Publisher. The resulting
6524
6548
* Publisher emits connected, non-overlapping buffers. It emits the current buffer and replaces it with a
6525
- * new buffer whenever the Publisher produced by the specified {@code closingIndicator } emits an item.
6549
+ * new buffer whenever the Publisher produced by the specified {@code boundaryIndicatorSupplier } emits an item.
6526
6550
* <p>
6527
6551
* <img width="640" height="395" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer1.png" alt="">
6528
6552
* <dl>
6553
+ * If either the source Publisher or the boundary Publisher issues an onError notification the event is passed on
6554
+ * immediately without first emitting the buffer it is in the process of assembling.
6529
6555
* <dt><b>Backpressure:</b></dt>
6530
6556
* <dd>This operator does not support backpressure as it is instead controlled by the given Publishers and
6531
6557
* buffers data. It requests {@code Long.MAX_VALUE} upstream and does not obey downstream requests.</dd>
0 commit comments